Lines Matching defs:block
36 "put($self, /, item, block=True, timeout=None)\n"
41 "The optional \'block\' and \'timeout\' arguments are ignored, as this method\n"
49 int block, PyObject *timeout);
55 static const char * const _keywords[] = {"item", "block", "timeout", NULL};
60 int block = 1;
72 block = PyObject_IsTrue(args[1]);
73 if (block < 0) {
82 return_value = _queue_SimpleQueue_put_impl(self, item, block, timeout);
124 "get($self, /, block=True, timeout=None)\n"
129 "If optional args \'block\' is true and \'timeout\' is None (the default),\n"
130 "block if necessary until an item is available. If \'timeout\' is\n"
133 "Otherwise (\'block\' is false), return an item if one is immediately\n"
142 int block, PyObject *timeout_obj);
148 static const char * const _keywords[] = {"block", "timeout", NULL};
152 int block = 1;
163 block = PyObject_IsTrue(args[0]);
164 if (block < 0) {
173 return_value = _queue_SimpleQueue_get_impl(self, cls, block, timeout_obj);