Commit c39172cc authored by Denis Bilenko's avatar Denis Bilenko

libev: pull minor updates from cvs

parent 4f8666ed
...@@ -5,6 +5,8 @@ TODO: EV_STANDALONE == NO_HASSEL (do not use clock_gettime in ev_standalone) ...@@ -5,6 +5,8 @@ TODO: EV_STANDALONE == NO_HASSEL (do not use clock_gettime in ev_standalone)
TODO: faq, process a thing in each iteration TODO: faq, process a thing in each iteration
TODO: dbeugging tips, ev_verify, ev_init twice TODO: dbeugging tips, ev_verify, ev_init twice
- destroying a non-default loop would stop the global waitpid
watcher (Denis Bilenko).
- queueing pending watchers of higher priority from a watcher now invokes - queueing pending watchers of higher priority from a watcher now invokes
them in a timely fashion (reported by Denis Bilenko). them in a timely fashion (reported by Denis Bilenko).
- add throw() to all libev functions that cannot throw exceptions, for - add throw() to all libev functions that cannot throw exceptions, for
......
...@@ -1922,10 +1922,9 @@ pipecb (EV_P_ ev_io *iow, int revents) ...@@ -1922,10 +1922,9 @@ pipecb (EV_P_ ev_io *iow, int revents)
#ifdef _WIN32 #ifdef _WIN32
WSABUF buf; WSABUF buf;
DWORD recvd; DWORD recvd;
DWORD flags; DWORD flags = 0;
buf.buf = dummy; buf.buf = dummy;
buf.len = sizeof (dummy); buf.len = sizeof (dummy);
flags = 0;
if (WSARecv(EV_FD_TO_WIN32_HANDLE(evpipe[0]), &buf, 1, &recvd, &flags, 0, 0)) if (WSARecv(EV_FD_TO_WIN32_HANDLE(evpipe[0]), &buf, 1, &recvd, &flags, 0, 0))
{ {
int error; int error;
...@@ -2380,7 +2379,7 @@ ev_loop_destroy (EV_P) ...@@ -2380,7 +2379,7 @@ ev_loop_destroy (EV_P)
#endif #endif
#if EV_CHILD_ENABLE #if EV_CHILD_ENABLE
if (ev_default_loop_ptr == EV_A) if (ev_is_default_loop(EV_A))
{ {
if (ev_is_active (&childev)) if (ev_is_active (&childev))
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment