File tree 3 files changed +11
-0
lines changed
3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -317,11 +317,17 @@ Edge and Level Trigger Polling (epoll) Objects
317
317
+-------------------------+-----------------------------------------------+
318
318
| :const: `EPOLLMSG ` | Ignored. |
319
319
+-------------------------+-----------------------------------------------+
320
+ | :const: `EPOLLWAKEUP ` | Prevents sleep during event waiting. |
321
+ +-------------------------+-----------------------------------------------+
320
322
321
323
.. versionadded :: 3.6
322
324
:const: `EPOLLEXCLUSIVE ` was added. It's only supported by Linux Kernel 4.5
323
325
or later.
324
326
327
+ .. versionadded :: next
328
+ :const: `EPOLLWAKEUP ` was added. It's only supported by Linux Kernel 3.5
329
+ or later.
330
+
325
331
.. method :: epoll.close()
326
332
327
333
Close the control file descriptor of the epoll object.
Original file line number Diff line number Diff line change
1
+ Add the ``EPOLLWAKEUP `` constant to the :mod: `select ` module.
Original file line number Diff line number Diff line change @@ -2715,6 +2715,10 @@ _select_exec(PyObject *m)
2715
2715
#ifdef EPOLLMSG
2716
2716
ADD_INT (EPOLLMSG );
2717
2717
#endif
2718
+ #ifdef EPOLLWAKEUP
2719
+ /* Kernel 3.5+ */
2720
+ ADD_INT (EPOLLWAKEUP );
2721
+ #endif
2718
2722
2719
2723
#ifdef EPOLL_CLOEXEC
2720
2724
ADD_INT (EPOLL_CLOEXEC );
You can’t perform that action at this time.
0 commit comments