From 18f995919d04a2f599f2139fbd8adbe763be2d54 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Sun, 3 Jul 2022 09:38:31 -0400 Subject: [PATCH] Island: Add TODO about read/write lock --- .../cc/repository/file_repository_locking_decorator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/monkey/monkey_island/cc/repository/file_repository_locking_decorator.py b/monkey/monkey_island/cc/repository/file_repository_locking_decorator.py index 7539d4fc1..18a559f78 100644 --- a/monkey/monkey_island/cc/repository/file_repository_locking_decorator.py +++ b/monkey/monkey_island/cc/repository/file_repository_locking_decorator.py @@ -3,6 +3,10 @@ from typing import BinaryIO 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): def __init__(self, file_repository: IFileRepository):