|
@@ -24,8 +24,20 @@ class BasePool(object):
|
|
|
|
|
|
Timer = timer2.Timer
|
|
|
|
|
|
+ #: set to true if the pool can be shutdown from within
|
|
|
+ #: a signal handler.
|
|
|
signal_safe = True
|
|
|
+
|
|
|
+ #: set to true if pool supports rate limits.
|
|
|
+ #: (this is here for gevent, which currently does not implement
|
|
|
+ #: the necessary timers).
|
|
|
rlimit_safe = True
|
|
|
+
|
|
|
+ #: set to true if pool requires the use of a mediator
|
|
|
+ #: thread (e.g. if applying new items can block the current thread).
|
|
|
+ requires_mediator = False
|
|
|
+
|
|
|
+ #: set to true if pool uses greenlets.
|
|
|
is_green = False
|
|
|
|
|
|
_state = None
|