Skip to content

Commit afd1d64

Browse files
committed
Threading
1 parent 38b1f5c commit afd1d64

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
@@ -2065,7 +2065,7 @@ with lock:
20652065
```
20662066

20672067
### Semaphore, Event, Barrier
2068-
```
2068+
```python
20692069
<Semaphore> = Semaphore(value=1) # Lock that can be acquired 'value' times.
20702070
<Event> = Event() # Method wait() blocks until set() is called.
20712071
<Barrier> = Barrier(n_times) # Method wait() blocks until it's called n_times.

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1822,7 +1822,7 @@
18221822
...
18231823
</code></pre></div>
18241824

1825-
<div><h3 id="semaphoreeventbarrier">Semaphore, Event, Barrier</h3><pre><code class="python hljs">&lt;Semaphore&gt; = Semaphore(value=<span class="hljs-number">1</span>) <span class="hljs-comment"># Lock that can be acquired 'value' times.</span>
1825+
<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 'value' times.</span>
18261826
&lt;Event&gt; = Event() <span class="hljs-comment"># Method wait() blocks until set() is called.</span>
18271827
&lt;Barrier&gt; = Barrier(n_times) <span class="hljs-comment"># Method wait() blocks until it's called n_times.</span>
18281828
</code></pre></div>

0 commit comments

Comments
 (0)