Armin Novak
d29448bda8
Removed unused function
2020-03-10 14:04:53 +01:00
Kobi Mizrachi
f92e941129
winpr: SetWaitableTimer should not free the handle if it fails
2019-12-17 09:46:00 +01:00
Armin Novak
72ca88f49c
Reformatted to new style
2019-11-07 10:53:54 +01:00
Armin Novak
e605a10921
Fixed NULL argument warning.
2019-04-05 09:14:35 +02:00
Armin Novak
b5d9b6dba4
Improved timer implementation and error messages.
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
Armin Novak
e71a39f214
Fixed compiler warnings (unused)
2018-05-11 11:00:01 +02:00
Kyle Evans
f1a7c3cc6a
Pass TFD_NONBLOCK to timerfd_create to avoid later fcntl
2018-05-02 21:03:49 -05:00
Armin Novak
9bd13c25c9
Added WaitableTimer implementation for mac OS.
2018-03-12 13:39:21 +01:00
David Fort
917bc4b551
set some define consistency
...
This patch cleanup the defines to make then consistent.
2018-02-05 14:17:23 +01:00
Armin Novak
7305828122
Fix #4239 : Various memory leaks
...
* Fixed all tests, now can be run with -DWITH_ADDRESS_SANITIZER=ON compiled.
* Enabled address sanitizer for nightly builds.
2017-12-12 11:40:48 +01:00
Armin Novak
90e1d39fec
Fixed formatting and warnings.
2017-11-15 15:56:24 +01:00
Armin Novak
b0289e3ed8
Fixed cast warnings.
2017-04-10 10:39:01 +02:00
Norbert Federa
a35a1e3d9b
winpr/synch: fix InitializeWaitableTimer result
...
InitializeWaitableTimer must not reported success if the operating
sytem does not provide the required functionality.
2016-06-06 23:06:12 +02:00
Norbert Federa
e35049c20e
winpr/synch: fix timerqueue segfault
...
The current experimental/incomplete WinPR timer queue implementation
has several race conditions.
This commit fixes a segfault caused by not unklinking freed timers
from the timer queue timers list.
2016-06-06 13:24:04 +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
David FORT
16d36e3083
A malloc() pass on WinPR
...
This patch treats remaining non-checked mallocs. And changes to calloc in places
where it makes sense
2015-06-22 19:10:00 +02:00
Armin Novak
853ac63afd
Removed INVALID_HANDLE_VALUE.
2015-03-31 15:18:46 +02:00
Armin Novak
afe8bd2a86
Fixed missing checks for invalid handle.
2015-03-31 15:18:45 +02: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
ivan-83
712b5e6174
* fix: /winpr/libwinpr/synch/timer.c:79:11: warning: implicit declaration of function 'read' is invalid in C99
2015-03-13 01:51:59 +03:00
Armin Novak
1e43f2a953
Using new handle cleanup structure
2015-03-11 17:57:01 +01:00
Armin Novak
1706c1f8db
Using handle close callback now.
2015-03-11 15:11:20 +01:00
Armin Novak
b22b897389
Reformatted changed files.
2014-09-09 16:32:22 +02:00
Armin Novak
7e3a1b3073
Now using macro to generate module specific log tag.
2014-09-09 16:32:04 +02:00
Armin Novak
28ece6bb46
Replaced stdio logging with WLog
2014-09-09 16:31:46 +02:00
Bernhard Miklautz
a124f6a7c6
fix comment style
...
// to /* */
2014-07-29 05:22:30 +02:00
Bernhard Miklautz
a9eed46e38
Fix warnings found in Xcode
2014-07-29 05:22:30 +02:00
Zhang Zhaolong
88760cbd83
libwinpr: fix memory leak in case TimerQueue is NULL.
2014-04-26 11:36:35 +08:00
Marc-André Moreau
14b75d1b27
libfreerdp-core: fix build warnings and windows broken build
2014-03-25 15:19:52 -04:00
Marc-André Moreau
fb2428309c
mfreerdp: apply fixes from mac-audio branch
2014-03-03 16:57:43 -05:00
Marc-André Moreau
eb38b9f1e1
libwinpr-synch: add active/inactive linked list for timer queue
2014-01-27 10:37:38 -05:00
Marc-André Moreau
159f539ef2
libwinpr-synch: improve timer queue implementation
2014-01-26 21:56:07 -05:00
Marc-André Moreau
1f394eb81d
libwinpr-synch: make use of head's expiration time in timer queue
2014-01-26 20:49:48 -05:00
Marc-André Moreau
3616b19290
libwinpr-synch: make use of timespec for timer queue
2014-01-26 20:39:13 -05:00
Marc-André Moreau
2e45ad143f
libwinpr-synch: improve timer queue implementation
2014-01-26 17:21:12 -05:00
Marc-André Moreau
656766ca2e
libwinpr-synch: start implementing timer queue
2014-01-26 12:37:38 -05:00
Marc-André Moreau
d5fcd78b65
libwinpr-synch: fix build on OS X
2014-01-26 00:06:27 -05:00
Marc-André Moreau
d2405a25f8
libwinpr-synch: initial waitable timer asynchronous procedure callback support
2014-01-24 22:44:23 -05:00
Marc-André Moreau
fab0cd2779
libwinpr-synch: stub timer queues
2014-01-24 17:48:55 -05:00
Armin Novak
a3b531c036
Fixed issues found with clang-analyzer
2013-09-05 12:14:33 +02:00
Marc-André Moreau
190ed85a3d
libwinpr-synch: add detection of timerfd support
2013-08-03 19:50:17 -04:00
Marc-André Moreau
4d2bc6ba46
libwinpr-synch: add unit tests, initial waitable timer support
2013-07-29 13:07:39 -04:00
Marc-André Moreau
007bd87ff4
libwinpr-synch: start implementing waitable timers
2013-07-29 11:57:29 -04:00
Marc-André Moreau
4bd217055c
libwinpr-synch: implemented Win32 Events
2012-09-18 18:36:13 -04:00
Marc-André Moreau
78723f019f
libwinpr-synch: stubbed more
2012-09-18 15:51:33 -04:00