FreeRDP/winpr
Norbert Federa 2b25b4a520 libwinpr-sync: New complete critical section code
- Complete implementation including recursion support
- Added an intensive ctest (TestSynchCritical)
- Struct members are used exactly as Windows does it internally:
  LockCount starts at -1, RecursionCount at 0
- Same performance optimizations as internally on Windows:
    - Fast lock acquisition path using CAS -> SpinCount -> wait
    - SpinCount automatically disabled on uniprocessor systems
- On Linux SpinCount is disabled because it provided no advantage over NPTL/futex in all tests

Support for CRITICAL_SECTION's DebugInfo is not yet included (but trivial to add).
2013-08-07 10:20:04 +02:00
..
include libwinpr-sync: New complete critical section code 2013-08-07 10:20:04 +02:00
libwinpr libwinpr-sync: New complete critical section code 2013-08-07 10:20:04 +02:00
tools xfreerdp-server: auto-generate self-signed certificate 2013-04-23 18:17:01 -04:00
.gitignore libwinpr-registry: start implementation 2012-06-05 18:56:31 -04:00
CMakeLists.txt winpr: Don't build tools for Android and iOS 2013-03-14 09:38:50 -07:00