You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
- If latch.get() is called and the queue is empty, a thread is put to sleep. - If Latch.put() from another thread then appends an item to the queue and wakes the sleeping thread, and - If a subsequent Latch.put() from the same or another thread manages to acquire `lock` before the sleeping thread is scheduled, - The sleeping thread's wake socket would have multiple bytes written to it. Therefore create a new _pending variable to track the only item assigned to each thread (keyed by its write socket), and remove the socket from `sleeping` from within put. |
8 years ago | |
|---|---|---|
| ansible_mitogen | 8 years ago | |
| docs | 8 years ago | |
| examples | 8 years ago | |
| mitogen | 8 years ago | |
| tests | 8 years ago | |
| .gitignore | 8 years ago | |
| .lgtm.yml | 8 years ago | |
| .travis.yml | 8 years ago | |
| LICENSE | 8 years ago | |
| README.md | 8 years ago | |
| dev_requirements.txt | 8 years ago | |
| preamble_size.py | 8 years ago | |
| setup.cfg | 8 years ago | |
| setup.py | 8 years ago | |
| test.sh | 8 years ago | |
| tox.ini | 8 years ago | |