Skip to content

Commit 4e953b4

Browse files
authored
Remove an unnecessary condition acquire/release pair (#1478)
1 parent ae18040 commit 4e953b4

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

book/scheduling.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,6 @@ class TaskRunner:
301301
self.condition.release()
302302
if task:
303303
task.run()
304-
305-
self.condition.acquire(blocking=True)
306-
self.condition.release()
307304
```
308305

309306
[condition-variable]: https://docs.python.org/3/library/threading.html#threading.Condition

0 commit comments

Comments
 (0)