Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9ef5dca

Browse files
committed
Threading
1 parent 4ed651c commit 9ef5dca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2074,7 +2074,7 @@ with lock:
20742074

20752075
### Semaphore, Event, Barrier
20762076
```python
2077-
<Semaphore> = Semaphore(value=1) # Lock that can be acquired by 'value' threads.
2077+
<Semaphore> = Semaphore(value=1) # Lock that can be acquired by 'value' threads at once.
20782078
<Event> = Event() # Method wait() blocks until set() is called.
20792079
<Barrier> = Barrier(n_times) # Method wait() blocks until it's called 'n_times'.
20802080
```

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1855,7 +1855,7 @@
18551855
...
18561856
</code></pre></div>
18571857

1858-
<div><h3 id="semaphoreeventbarrier">Semaphore, Event, Barrier</h3><pre><code class="python language-python hljs">&lt;Semaphore&gt; = Semaphore(value=<span class="hljs-number">1</span>) <span class="hljs-comment"># Lock that can be acquired by 'value' threads.</span>
1858+
<div><h3 id="semaphoreeventbarrier">Semaphore, Event, Barrier</h3><pre><code class="python language-python hljs">&lt;Semaphore&gt; = Semaphore(value=<span class="hljs-number">1</span>) <span class="hljs-comment"># Lock that can be acquired by 'value' threads at once.</span>
18591859
&lt;Event&gt; = Event() <span class="hljs-comment"># Method wait() blocks until set() is called.</span>
18601860
&lt;Barrier&gt; = Barrier(n_times) <span class="hljs-comment"># Method wait() blocks until it's called 'n_times'.</span>
18611861
</code></pre></div>

0 commit comments

Comments
 (0)