From 9ef5dcaa5a5787dbaa5ee719bbeaa4124255bc6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Mon, 4 Jan 2021 10:11:49 +0100 Subject: [PATCH] Threading --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4f61afc..758e8f4 100644 --- a/README.md +++ b/README.md @@ -2074,7 +2074,7 @@ with lock: ### Semaphore, Event, Barrier ```python - = Semaphore(value=1) # Lock that can be acquired by 'value' threads. + = Semaphore(value=1) # Lock that can be acquired by 'value' threads at once. = Event() # Method wait() blocks until set() is called. = Barrier(n_times) # Method wait() blocks until it's called 'n_times'. ``` diff --git a/index.html b/index.html index c71e341..f32a08d 100644 --- a/index.html +++ b/index.html @@ -1855,7 +1855,7 @@ CompletedProcess(args=['bc', Semaphore, Event, Barrier
<Semaphore> = Semaphore(value=1)      # Lock that can be acquired by 'value' threads.
+

Semaphore, Event, Barrier

<Semaphore> = Semaphore(value=1)      # Lock that can be acquired by 'value' threads at once.
 <Event>     = Event()                 # Method wait() blocks until set() is called.
 <Barrier>   = Barrier(n_times)        # Method wait() blocks until it's called 'n_times'.