-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Value Sharing System #101
Comments
Shared Memory Writable/ReadOnlyアプリケーション(プロセス/スレッド)間で値共有をする時につかう、意図しない値の変更を防ぐ機能を持たせたクラスを実装します。 Exampleimport multiprocessing as mp
v = mp.Value('I', 0)
writable = make_writable(v)
readonly = make_readonly(v)
> readonly.value
--> 0
> readonly.value = 1
RuntimeError: Read only shared memory
> writable.value = 2 # OK
|
Barrier with shutdown |
Shared Memory Numpy Array
|
This was referenced May 15, 2022
Open
FolderDict_withLockFolderDictのサブクラスです。複数のスレッドから同時に読み込みや書き込みが行われないようFolderDictを |
This was referenced May 18, 2022
Closed
Closed
This was referenced Jun 6, 2022
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
アプリケーション間で値を共有する方法を実装します。
FolderDictを用いて値を管理します。separatorは
.
(core.name.SEP
)を使用します。nameが
MAIN.App
というアプリがQueue
という名前で値を共有するとき、次のような形で登録されます。The text was updated successfully, but these errors were encountered: