lockutils - native threads support
Bug #1065529 reported by
Mark McLoughlin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo-incubator |
Fix Released
|
Medium
|
Victor Stinner |
Bug Description
https:/
This piece of code:
sem = _semaphores.
if name not in _semaphores:
# this check is not racy - we're already holding ref locally
# so GC won't remove the item and there was no IO switch
# (only valid in greenthreads)
assumes that we're using greenthreads and not native threads
We should support native threads soon
This:
http://
shows how we can fix that by protecting the semaphores dict with a lock
affects: | openstack-common → oslo |
Changed in oslo: | |
milestone: | none → icehouse-1 |
status: | Fix Committed → Fix Released |
Changed in oslo: | |
milestone: | icehouse-1 → 2014.1 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/54581
Review: https:/