瀏覽代碼

r12570@catbus: nickm | 2007-04-30 10:49:50 -0400
Add an extra lock to try to get unit tessts passing reliably again.


svn:r10062

Nick Mathewson 18 年之前
父節點
當前提交
ee5a378665
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/or/test.c

+ 2 - 0
src/or/test.c

@@ -1229,7 +1229,9 @@ _thread_test_func(void* _s)
     strmap_set(_thread_test_strmap, "last to run", cp);
     tor_mutex_release(_thread_test_mutex);
   }
+  tor_mutex_acquire(_thread_test_mutex);
   strmap_set(_thread_test_strmap, s, tor_strdup(buf));
+  tor_mutex_release(_thread_test_mutex);
 
   tor_mutex_release(m);