gevent.thread
– Implementation of the standard thread
module that spawns greenlets¶Implementation of the standard thread
module that spawns greenlets.
Note
This module is a helper for gevent.monkey
and is not
intended to be used directly. For spawning greenlets in your
applications, prefer higher level constructs like
gevent.Greenlet
class or gevent.spawn()
.
error
¶Bases: exceptions.Exception
allocate_lock
¶alias of gevent.thread.LockType
LockType
(*args, **kwargs)[source]¶Bases: gevent.lock.BoundedSemaphore
acquire
(blocking=True, timeout=None) → bool[source]¶Acquire the semaphore.
Note
If this semaphore was initialized with a value of 0, this method will block forever (unless a timeout is given or blocking is set to false).
Parameters: |
|
---|---|
Returns: | A |
Next page: gevent.threading
– Implementation of the standard threading
using greenlets