3 ms·
> I know from experience the platform-provided mutex implementation on win32 is horrendously slow Sorry, but this sounds like FUD to me. First off, there is no
by spacechild1 4y ago
> I know from experience the platform-provided mutex implementation on win32 is horrendously slow
Sorry, but this sounds like FUD to me. First off, there is no single Win32 mutex implementation. The Win32 'Mutex' object is indeed heavy weight, but it is meant for inter-process synchronization. For thread synchronization you would rather use 'CriticalSection' or 'SRWLOCK'; they both avoid calling into the kernel in the uncontended case. SRWLOCK in particular is very fast.