mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-84570: Add Timeouts to SendChannel.send() and RecvChannel.recv() (gh-110567)
This commit is contained in:
parent
7029c1a1c5
commit
c58c63fdf6
8 changed files with 205 additions and 50 deletions
|
@ -214,6 +214,8 @@ _queue_SimpleQueue_get_impl(simplequeueobject *self, PyTypeObject *cls,
|
|||
PY_TIMEOUT_T microseconds;
|
||||
PyThreadState *tstate = PyThreadState_Get();
|
||||
|
||||
// XXX Use PyThread_ParseTimeoutArg().
|
||||
|
||||
if (block == 0) {
|
||||
/* Non-blocking */
|
||||
microseconds = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue