News for hackers. Stuff that matters.
Re:3.7X speedup from removing a call to sleep by cpeterso on Sunday September 02, 2012 @07:20PM (#4468525)
Why did they roll their own spinlock implementation in the first place? They could encapsulate the lock primitives provided by, and optimized for, each platform: CRITICAL_SECTIONs on Windows, futexes on Linux, and pthread_spin_locks elsewhere. iOS and OSX have some Mach-specific spinlocks (OSSpinLockLock?), but I don't have any experience using them.

There are no comments on this comment yet.