Mirror of mitogen
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.
 
 
 
Go to file
David Wilson 001e0163fe issue #156: handle multiple _put() before wake of first sleeper
- 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 issue #156: always enable microsecond logging 8 years ago
docs issue #156: docs typo 8 years ago
examples issue #152: reproduction for second problem 8 years ago
mitogen issue #156: handle multiple _put() before wake of first sleeper 8 years ago
tests tests: mark some tests as skipped 8 years ago
.gitignore Some gitignore extras 8 years ago
.lgtm.yml compat: ignore LGTM checks on third party 8 years ago
.travis.yml Remove overall build timeout from .travis.yml. 8 years ago
LICENSE Add license text everywhere. 8 years ago
README.md README: move testing bits into tests directory. 8 years ago
dev_requirements.txt Add Google Cloud client to dev requirements 8 years ago
preamble_size.py docs: fix preamble_size.py after whitelist changes 8 years ago
setup.cfg Initial flake8 configuration. 8 years ago
setup.py setup: Scan project dir to find packages 8 years ago
test.sh tests: Find all *_test.py scripts and run them 8 years ago
tox.ini tests: Add Tox config for Python 2.6 and 2.7 8 years ago

README.md