mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
poll: Fix WAKE_EVENT() to behave posixly on Windows
This commit is contained in:
parent
e0c92982e9
commit
54a9d8038d
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ static gboolean gst_poll_add_fd_unlocked (GstPoll * set, GstPollFD * fd);
|
|||
#define WAKE_EVENT(s) (write ((s)->control_write_fd.fd, "W", 1) == 1)
|
||||
#define RELEASE_EVENT(s) (read ((s)->control_read_fd.fd, (s)->buf, 1) == 1)
|
||||
#else
|
||||
#define WAKE_EVENT(s) (SetEvent ((s)->wakeup_event))
|
||||
#define WAKE_EVENT(s) (SetEvent ((s)->wakeup_event), errno = GetLastError () == NO_ERROR ? 0 : EACCES, errno == 0 ? 1 : 0)
|
||||
#define RELEASE_EVENT(s) (ResetEvent ((s)->wakeup_event))
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue