|
@@ -420,11 +420,12 @@ _thread_test_func(void* _s)
|
|
cp = &_thread2_name;
|
|
cp = &_thread2_name;
|
|
count = &t2_count;
|
|
count = &t2_count;
|
|
}
|
|
}
|
|
- tor_mutex_acquire(m);
|
|
|
|
|
|
|
|
tor_snprintf(buf, sizeof(buf), "%lu", tor_get_thread_id());
|
|
tor_snprintf(buf, sizeof(buf), "%lu", tor_get_thread_id());
|
|
*cp = tor_strdup(buf);
|
|
*cp = tor_strdup(buf);
|
|
|
|
|
|
|
|
+ tor_mutex_acquire(m);
|
|
|
|
+
|
|
for (i=0; i<10000; ++i) {
|
|
for (i=0; i<10000; ++i) {
|
|
tor_mutex_acquire(_thread_test_mutex);
|
|
tor_mutex_acquire(_thread_test_mutex);
|
|
strmap_set(_thread_test_strmap, "last to run", *cp);
|
|
strmap_set(_thread_test_strmap, "last to run", *cp);
|