Changeset 6710 for trunk/libtransmission/platform.c
- Timestamp:
- Sep 5, 2008, 2:32:28 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/platform.c
r6702 r6710 647 647 */ 648 648 649 static LONG volatile g_sl __attribute__ ((aligned (4))); 650 649 651 /* Wait for spin lock */ 650 static int slwait ( int*sl) {651 while (InterlockedCompareExchange ( (void **) sl, (void *) 1, (void *) 0) != 0)652 static int slwait (LONG volatile *sl) { 653 while (InterlockedCompareExchange (sl, 1, 0) != 0) 652 654 Sleep (0); 653 655 return 0; … … 655 657 656 658 /* Release spin lock */ 657 static int slrelease ( int*sl) {659 static int slrelease (LONG *sl) { 658 660 InterlockedExchange (sl, 0); 659 661 return 0; 660 662 } 661 662 static int g_sl;663 663 664 664 void *mmap (void *ptr, long size, long prot, long type, long handle, long arg) {
Note: See TracChangeset
for help on using the changeset viewer.