Changeset 427 for trunk/BAL/OWBAL/Concretizations/Types/WK/BCTCSpinLockWK.h
- Timestamp:
- 08/01/08 14:47:24 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/BAL/OWBAL/Concretizations/Types/WK/BCTCSpinLockWK.h
r426 r427 38 38 #include <time.h> /* For nanosleep() */ 39 39 40 #if PLATFORM(AMIGAOS4)41 #include <unistd.h>42 #else43 40 #include <sched.h> /* For sched_yield() */ 44 #endif45 41 46 42 #if HAVE(STDINT_H) … … 140 136 141 137 static void TCMalloc_SlowLock(volatile unsigned int* lockword) { 142 #if !PLATFORM(AMIGAOS4)143 138 sched_yield(); // Yield immediately since fast path failed 144 #endif145 139 while (true) { 146 140 int r; … … 188 182 #if PLATFORM(WIN_OS) 189 183 Sleep(2); 190 #elif PLATFORM(AMIGAOS4)191 usleep(200);192 184 #else 193 185 struct timespec tm;
