FreeRDP/winpr/libwinpr/utils
Norbert Federa 3a58934eb2 libwinpr-utils: Use criticalsection with spincount
Use InitializeCriticalSectionAndSpinCount instead of IntializeCriticalSection.
Using spin counts for critical sections of short duration enables the calling
thread to avoid the wait operation in most situations which can dramatically
improve the overall performance on multiprocessor systems.

On Linux this change has no effect because the new winpr critical section
implementation does not use the SpinCount field under Linux because the NPTL
synchronization primitives are implemented using the extremely performant
futex system calls which have this magic already built in.

However, on Mac OS X this change improved the overall performance of the
multithreaded RemoteFX decoder by 25 percent.

I've used a SpinCount of 4000 which avoided 99 percent of the wait calls.
This value is also used by Microsoft's heap manager for its per-heap
critical sections.

Note: This change requires pull request #1397 to be merged.
2013-08-07 18:16:01 +02:00
..
collections libwinpr-utils: Use criticalsection with spincount 2013-08-07 18:16:01 +02:00
test libwinpr-utils: implement ListDictionary 2013-07-05 18:23:26 -04:00
trio wfreerdp: fix build on Windows 2013-03-29 00:33:15 -04:00
CMakeLists.txt libwinpr-utils: start implementing Publisher/Subscriber pattern 2013-06-14 16:55:05 -04:00
cmdline.c libfreerdp-client: start splitting termination and printing logic for CLI parsing 2013-06-15 15:13:38 -04:00
ModuleOptions.cmake libwinpr: use ModuleOptions.cmake automatically 2012-10-03 19:50:48 -04:00
ntlm.c libwinpr-sspi: valgrind cleanup 2012-08-23 01:18:47 -04:00
print.c Replace printf(...) by fprintf(stderr, ...) 2013-03-28 23:06:34 +01:00
sam.c libfreerdp-client: initial support for .rdp file parsing 2012-10-27 20:25:11 -04:00
stream.c libfreerdp-core: send using separate streams, re-enable frame acks 2013-05-15 18:05:40 -04:00