Island: Add TODO regarding gevent.lock()

This commit is contained in:
Mike Salvatore 2022-07-05 09:53:18 -04:00
parent 8873ef891b
commit 4f6978c732
3 changed files with 7 additions and 0 deletions

View File

@ -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
# Mutex avoids race condition between monkeys

View File

@ -1,5 +1,7 @@
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
logger = logging.getLogger(__name__)

View File

@ -1,6 +1,9 @@
from typing import List
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 common.common_consts import zero_trust_consts