FreeRDP/winpr/libwinpr/synch/test
Norbert Federa ef1fd12b15 Fix unchecked CreateEvent calls and misc fixes
1)
Added missing checks for CreateEvent which also required the
following related changes:

- changed freerdp_context_new API to BOOL
- changed freerdp_peer_context_new API to BOOL
- changed pRdpClientNew callback to BOOL
- changed pContextNew callback to BOOL
- changed psPeerAccepted callback to BOOL
- changed psPeerContextNew callback to BOOL

2)
Fixed lots of missing alloc and error checks in the
changed code's neighbourhood.

3)
Check freerdp_client_codecs_prepare result to avoid segfaults
caused by using non-initialized codecs.

4)
Fixed deadlocks in x11 caused by missing xf_unlock_x11() calls
in some error handlers

5)
Some fixes in thread pool:
- DEFAULT_POOL assignment did not match TP_POOL definition
- don't free the pool pointer if it points to the static DEFAULT_POOL
- added error handling and cleanup in InitializeThreadpool
2015-04-29 18:18:39 +02:00
..
.gitignore libwinpr-sync: New complete critical section code 2013-08-07 10:20:04 +02:00
CMakeLists.txt Added additional tests for WaitForSingleObject and WaitForMultipleObjects. 2014-10-27 11:23:18 +01:00
TestSynchBarrier.c Fix unchecked CreateEvent calls and misc fixes 2015-04-29 18:18:39 +02:00
TestSynchCritical.c winpr: add checks for *alloc 2015-04-08 11:34:37 +02:00
TestSynchEvent.c libwinpr-synch: add unit tests, initial waitable timer support 2013-07-29 13:07:39 -04:00
TestSynchInit.c winpr/sync: Added InitOnceExecuteOnce plus CTest 2014-07-24 21:12:59 +02:00
TestSynchMultipleThreads.c libwinpr-synch: fix test build on Win32 2015-02-17 18:44:09 -05:00
TestSynchMutex.c Fixed includes and test function naming. 2013-11-15 11:43:01 +01:00
TestSynchSemaphore.c libwinpr-synch: add unit tests, initial waitable timer support 2013-07-29 13:07:39 -04:00
TestSynchThread.c Fixed typo 2014-10-27 11:28:13 +01:00
TestSynchTimerQueue.c Fix unchecked CreateEvent calls and misc fixes 2015-04-29 18:18:39 +02:00
TestSynchWaitableTimer.c winpr: fix crashing tests 2013-09-19 14:17:00 -04:00
TestSynchWaitableTimerAPC.c Fix unchecked CreateEvent calls and misc fixes 2015-04-29 18:18:39 +02:00