Lines Matching defs:wakeup
118 } wakeup = {.fd = INVALID_FD, .warn_on_full_buffer = 1, .use_send = 0};
128 } wakeup = {.fd = INVALID_FD, .warn_on_full_buffer = 1};
280 "signal wakeup fd:\n");
298 "signal wakeup fd:\n");
320 /* And then write to the wakeup fd *after* setting all the globals and
321 doing the _PyEval_SignalReceived. We used to write to the wakeup fd
325 - main thread blocks on select([wakeup.fd], ...)
327 - trip_signal writes to the wakeup fd
330 - the main thread empties the wakeup fd
341 fd = Py_SAFE_DOWNCAST(wakeup.fd, SOCKET_T, int);
343 fd = wakeup.fd;
349 if (wakeup.use_send) {
354 if (wakeup.warn_on_full_buffer ||
373 if (wakeup.warn_on_full_buffer ||
829 old_sockfd = wakeup.fd;
830 wakeup.fd = sockfd;
831 wakeup.warn_on_full_buffer = warn_on_full_buffer;
832 wakeup.use_send = is_socket;
856 int old_fd = wakeup.fd;
857 wakeup.fd = fd;
858 wakeup.warn_on_full_buffer = warn_on_full_buffer;
868 comes in. A library can use this to wakeup select or poll.\n\
882 int old_fd = Py_SAFE_DOWNCAST(wakeup.fd, SOCKET_T, int);
884 int old_fd = wakeup.fd;
886 wakeup.fd = fd;
887 wakeup.warn_on_full_buffer = 1;