summaryrefslogtreecommitdiff
path: root/src/common/compat_threads.h
AgeCommit message (Collapse)Author
2015-08-18Improve threadlocal documentationNick Mathewson
2015-08-18Add comments for thread-local storage functionsNick Mathewson
2015-08-18Use thread-local storage to block event_queue recursion.Nick Mathewson
2015-01-14Fix check-spacesNick Mathewson
2015-01-14"Recursive" locks, not "reentrant" locks. Duh.Nick Mathewson
2015-01-14Test a little more of compat_threads.cNick Mathewson
2015-01-14Rename mutex_for_cond -> mutex_nonreentrantNick Mathewson
We'll want to use these for other stuff too.
2015-01-14Documentation for new workqueue and condition and locking stuffNick Mathewson
2015-01-14Isolate the "socketpair or a pipe" logic for alerting main threadNick Mathewson
This way we can use the linux eventfd extension where available. Using EVFILT_USER on the BSDs will be a teeny bit trickier, and will require libevent hacking.
2015-01-14Specialize handling for mutexes allocated for condition variablesNick Mathewson
(These must not be reentrant mutexes with pthreads.)
2015-01-14Add tor_cond_init/uninitNick Mathewson
2015-01-14Add a timeout to tor_cond_wait; add tor_cond impl from libeventNick Mathewson
The windows code may need some tweaks for it to compile; I've not tested it yet.
2015-01-14Split threading-related code out of compat.cNick Mathewson
Also, re-enable the #if'd out condition-variable code. Work queues are going to make us hack on all of this stuff a bit more closely, so it might not be a terrible idea to make it easier to hack.