summaryrefslogtreecommitdiff
path: root/src/common/log.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-05-12 16:17:32 -0400
committerNick Mathewson <nickm@torproject.org>2009-05-13 09:38:48 -0400
commitc36efb0c451b3cc55d6ebf634af451f9d0b542b9 (patch)
tree168d215b6eb227ab8186f08ec00690a36826e599 /src/common/log.h
parenta28215a150818b11e128f5f5aeb44e53a40d5af7 (diff)
downloadtor-c36efb0c451b3cc55d6ebf634af451f9d0b542b9.tar.gz
tor-c36efb0c451b3cc55d6ebf634af451f9d0b542b9.zip
Use a mutex to protect the count of open sockets.
This matters because a cpuworker can close its socket when it finishes. Cpuworker typically runs in another thread, so without a lock here, we can have a race condition and get confused about how many sockets are open. Possible fix for bug 939.
Diffstat (limited to 'src/common/log.h')
0 files changed, 0 insertions, 0 deletions