Armin Novak
72ca88f49c
Reformatted to new style
2019-11-07 10:53:54 +01:00
Armin Novak
55e9132fa4
Fixed NULL argument warning.
2019-04-05 09:14:35 +02:00
Armin Novak
7b246121b4
Improved mutex and event functions
...
* Added name for debugging to handle.
* Implemented *Ex functions
2019-04-05 09:14:35 +02:00
Armin Novak
86f08981ef
Fixed warnings of uninitialized struct values.
2018-10-24 13:25:18 +02:00
Norbert Federa
f71b6b46e8
fix string format specifiers
...
- fixed invalid, missing or additional arguments
- removed all type casts from arguments
- added missing (void*) typecasts for %p arguments
- use inttypes defines where appropriate
2016-12-16 13:48:43 +01:00
Norbert Federa
386d290015
winpr/synch: fix mutex implementation
...
- Mutex is recursive on Windows; as a consequence we have to use
the pthread PTHREAD_MUTEX_RECURSIVE type
- Adapt MutexCloseHandle accordingly
- ReleaseMutex returned TRUE even if pthread_mutex_unlock failed
- Fixed and improved the TestSynchMutex ctest
2016-05-24 15:10:57 +02:00
Bernhard Miklautz
68e8569110
winpr/synch: remove the dependency on winsock.h
...
winsock.h pulls in a lot of defines and dependencies that are not
required and partially unwanted in winpr's core (for parts that are not
related to network). In order to get rid of this dependency and have an
independent defines for extended winpr functions the WINPR_FD_* defines
are used internally (and for exposed functions). Where required, like in
WSAEventSelect, the FD_* is mapped to WINPR_FD_*.
2015-07-14 11:39:41 +02:00
Armin Novak
d18b0fbeb4
Handle API updated.
2015-07-03 09:52:52 +02:00
Armin Novak
b81aaa9cc2
Fixed mutex trylock in MutexCloseHandle.
2015-06-25 12:24:28 +02:00
Armin Novak
b7fccafb94
Added EBUSY to success states.
2015-04-29 08:48:07 +02:00
Armin Novak
07ee198203
Better error handling on mutex destroy.
2015-04-28 17:31:27 +02:00
Armin Novak
fe27913859
Ensuring mutex is unlocked on destroy.
2015-04-28 09:42:46 +02:00
Armin Novak
ac15ce2da8
Added mutex debug flag.
...
When mutex debugging is enabled now a stack trace
is logged, if a mutex is locked on destruction.
2015-04-28 08:55:49 +02:00
Armin Novak
bd55b0df80
Removed INVALID_HANDLE_VALUE from types not using it.
2015-03-31 15:18:45 +02:00
Armin Novak
afe8bd2a86
Fixed missing checks for invalid handle.
2015-03-31 15:18:45 +02:00
Marc-André Moreau
3c4bee3d95
libfreerdp-core: fix RDG valgrind issues
2015-03-17 16:54:45 -04:00
David FORT
52bd4469d9
Make handle operations static
...
This patch moves the handle operations in a static struct.
2015-03-16 10:31:26 +01:00
Armin Novak
98b0f37020
Initializing handles with calloc now.
2015-03-11 18:09:22 +01:00
Armin Novak
e701e802bb
Using new handle cleanup structure
2015-03-11 17:57:01 +01:00
Armin Novak
4d471aacd6
Using handle close callback now.
2015-03-11 15:11:14 +01:00
Marc-André Moreau
007bd87ff4
libwinpr-synch: start implementing waitable timers
2013-07-29 11:57:29 -04:00
Marc-André Moreau
c0160b8015
libwinpr-handle: reduce usage of unneeded handle management functions
2013-05-16 18:27:26 -04:00
Marc-André Moreau
72e9087d1f
winpr: unify handle types
2013-05-16 17:32:58 -04:00
Bernhard Miklautz
aea81fb5c8
winpr/mutex: Support for bInitialOwner in CreateMutex
2013-04-03 19:35:45 +02:00
Marc-André Moreau
13dbbb9513
libfreerdp-utils: removing mutex util in favor of WinPR mutex API
2012-09-18 17:34:11 -04:00
Marc-André Moreau
deec68be19
libwinpr-synch: stubbed larger portions of the Synchronization API
2012-09-18 12:57:19 -04:00
Marc-André Moreau
faa4311232
libwinpr: add proper config.h inclusions
2012-08-14 17:20:53 -04:00
Marc-André Moreau
384af1d93b
include: move winpr include directory inside winpr
2012-08-14 15:49:39 -04:00