If a CRITICAL_SECTION is not initialized with a spin count, it will default to 0, even on multi-processor systems. MSDN suggests using 4000. On single-processor systems, the spin count parameter is ignored and the critical section's spin count defaults to 0. For Windows >= Vista, extra debug info is allocated for CRITICAL_SECTIONs but not released in a timely manner. Consider using InitializeCriticalSectionEx(CRITICAL_SECTION_NO_DEBUG_INFO). |
||
|---|---|---|
| .. | ||
| lock_and_signal.cpp | ||
| lock_and_signal.h | ||
| lock_free_queue.cpp | ||
| lock_free_queue.h | ||
| rust_thread.cpp | ||
| rust_thread.h | ||
| sync.h | ||
| timer.cpp | ||
| timer.h | ||