From b0f6591bebaf8c91ea1f780992ea8fc971487267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Mon, 4 Jan 2021 09:36:19 +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 118a6d1..cf88765 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 'value' times. + = Semaphore(value=1) # Lock that can be acquired by 'value' threads. = 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 ed40691..5b6f4fc 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 'value' times.
+

Semaphore, Event, Barrier

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