[tor-bugs] #17927 [Tor]: Use SRWLock for non-recursive locks on vista and later
Tor Bug Tracker & Wiki
blackhole at torproject.org
Wed Dec 23 15:58:09 UTC 2015
#17927: Use SRWLock for non-recursive locks on vista and later
-----------------------------+--------------------------
Reporter: nickm | Owner:
Type: enhancement | Status: new
Priority: Medium | Milestone: Tor: 0.2.???
Component: Tor | Version:
Severity: Normal | Keywords:
Actual Points: | Parent ID:
Points: | Sponsor:
-----------------------------+--------------------------
After WinXP, Windows added the SRWLock type, which is generally much
faster than CRITICAL_SECTION, and supports RW semantics. It doesn't
support recursive usage, though it can be hacked in.
I'm calling this 0.2.??? since we have no evidence that locking is
anywhere close to our critical path. But who knows; perhaps it is? Or
will be, once we do more things in workers?
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/17927>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list