Loading ChangeLog +1 −0 Original line number Diff line number Diff line Loading @@ -64,6 +64,7 @@ Changes in version 0.2.0.13-alpha - 2007-12-?? - Fix a couple of hard-to-trigger autoconf problems that could result in really weird results on platforms whose sys/types.h files define nonstandard integer types. - Fix compilation with --disable-threads set. o Minor features: - On USR1, when dmalloc is in use, log the top 10 memory Loading src/common/compat.h +2 −1 Original line number Diff line number Diff line Loading @@ -469,12 +469,14 @@ void tor_mutex_acquire(tor_mutex_t *m); void tor_mutex_release(tor_mutex_t *m); void tor_mutex_free(tor_mutex_t *m); unsigned long tor_get_thread_id(void); void tor_threads_init(void); #else #define tor_mutex_new() ((tor_mutex_t*)tor_malloc(sizeof(int))) #define tor_mutex_acquire(m) STMT_NIL #define tor_mutex_release(m) STMT_NIL #define tor_mutex_free(m) STMT_BEGIN tor_free(m); STMT_END #define tor_get_thread_id() (1UL) #define tor_threads_init() STMT_NIL #endif #ifdef TOR_IS_MULTITHREADED Loading @@ -484,7 +486,6 @@ void tor_cond_free(tor_cond_t *cond); int tor_cond_wait(tor_cond_t *cond, tor_mutex_t *mutex); void tor_cond_signal_one(tor_cond_t *cond); void tor_cond_signal_all(tor_cond_t *cond); void tor_threads_init(void); #endif /* Platform-specific helpers. */ Loading Loading
ChangeLog +1 −0 Original line number Diff line number Diff line Loading @@ -64,6 +64,7 @@ Changes in version 0.2.0.13-alpha - 2007-12-?? - Fix a couple of hard-to-trigger autoconf problems that could result in really weird results on platforms whose sys/types.h files define nonstandard integer types. - Fix compilation with --disable-threads set. o Minor features: - On USR1, when dmalloc is in use, log the top 10 memory Loading
src/common/compat.h +2 −1 Original line number Diff line number Diff line Loading @@ -469,12 +469,14 @@ void tor_mutex_acquire(tor_mutex_t *m); void tor_mutex_release(tor_mutex_t *m); void tor_mutex_free(tor_mutex_t *m); unsigned long tor_get_thread_id(void); void tor_threads_init(void); #else #define tor_mutex_new() ((tor_mutex_t*)tor_malloc(sizeof(int))) #define tor_mutex_acquire(m) STMT_NIL #define tor_mutex_release(m) STMT_NIL #define tor_mutex_free(m) STMT_BEGIN tor_free(m); STMT_END #define tor_get_thread_id() (1UL) #define tor_threads_init() STMT_NIL #endif #ifdef TOR_IS_MULTITHREADED Loading @@ -484,7 +486,6 @@ void tor_cond_free(tor_cond_t *cond); int tor_cond_wait(tor_cond_t *cond, tor_mutex_t *mutex); void tor_cond_signal_one(tor_cond_t *cond); void tor_cond_signal_all(tor_cond_t *cond); void tor_threads_init(void); #endif /* Platform-specific helpers. */ Loading