Island: Add TODO regarding gevent.lock()
This commit is contained in:
parent
8873ef891b
commit
4f6978c732
|
@ -1,3 +1,5 @@
|
||||||
|
# TODO: Switch to threading.lock and test. Calling gevent.patch_all() is supposed to monkeypatch
|
||||||
|
# threading to be compatible with gevent/greenlets.
|
||||||
from gevent.lock import BoundedSemaphore
|
from gevent.lock import BoundedSemaphore
|
||||||
|
|
||||||
# Mutex avoids race condition between monkeys
|
# Mutex avoids race condition between monkeys
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
# TODO: Switch to threading.lock and test. Calling gevent.patch_all() is supposed to monkeypatch
|
||||||
|
# threading to be compatible with gevent/greenlets.
|
||||||
from gevent.lock import BoundedSemaphore
|
from gevent.lock import BoundedSemaphore
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
from bson import ObjectId
|
from bson import ObjectId
|
||||||
|
|
||||||
|
# TODO: Switch to threading.lock and test. Calling gevent.patch_all() is supposed to monkeypatch
|
||||||
|
# threading to be compatible with gevent/greenlets.
|
||||||
from gevent.lock import BoundedSemaphore
|
from gevent.lock import BoundedSemaphore
|
||||||
|
|
||||||
from common.common_consts import zero_trust_consts
|
from common.common_consts import zero_trust_consts
|
||||||
|
|
Loading…
Reference in New Issue