forked from p15670423/monkey
Island: Add TODO about read/write lock
This commit is contained in:
parent
9cb79c119c
commit
18f995919d
|
@ -3,6 +3,10 @@ from typing import BinaryIO
|
||||||
|
|
||||||
from . import IFileRepository
|
from . import IFileRepository
|
||||||
|
|
||||||
|
# TODO: Use a read-write lock. See:
|
||||||
|
# - https://pypi.org/project/readerwriterlock/
|
||||||
|
# - https://www.oreilly.com/library/view/python-cookbook/0596001673/ch06s04.html
|
||||||
|
|
||||||
|
|
||||||
class FileRepositoryLockingDecorator(IFileRepository):
|
class FileRepositoryLockingDecorator(IFileRepository):
|
||||||
def __init__(self, file_repository: IFileRepository):
|
def __init__(self, file_repository: IFileRepository):
|
||||||
|
|
Loading…
Reference in New Issue