From afd1d64961ba6bb1b77c9620a874ceb379086d6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 16 Feb 2020 10:38:38 +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 47d39a8..d212b93 100644 --- a/README.md +++ b/README.md @@ -2065,7 +2065,7 @@ with lock: ``` ### Semaphore, Event, Barrier -``` +```python = Semaphore(value=1) # Lock that can be acquired 'value' times. = 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 5a92f55..b046a2b 100644 --- a/index.html +++ b/index.html @@ -1822,7 +1822,7 @@ lock.release() ... -

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 'value' times.
 <Event>     = Event()                # Method wait() blocks until set() is called.
 <Barrier>   = Barrier(n_times)       # Method wait() blocks until it's called n_times.