Skip to content
  • Nick Mathewson's avatar
    Use a mutex to protect the count of open sockets. · c36efb0c
    Nick Mathewson authored
    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.
    c36efb0c