diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-22 19:14:08 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-22 19:14:08 +0000 |
commit | b4d387c28bbcfabfc8baa1b63db396888534519a (patch) | |
tree | cfcf2aa91d3c404749eda39b6a10078f6ff39238 /src/common/compat.c | |
parent | 7d79bec54d7b37aacb3914f4baa792315ce4f905 (diff) | |
download | tor-b4d387c28bbcfabfc8baa1b63db396888534519a.tar.gz tor-b4d387c28bbcfabfc8baa1b63db396888534519a.zip |
Make freelist_len in memarea.c static; document a few variables.
svn:r17741
Diffstat (limited to 'src/common/compat.c')
-rw-r--r-- | src/common/compat.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index 6689eb8794..d5de6f58e1 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -1829,9 +1829,11 @@ tor_get_thread_id(void) return (unsigned long)GetCurrentThreadId(); } #elif defined(USE_PTHREADS) -/* DOCDOC attr_reentrant */ +/** A mutex attribute that we're going to use to tell pthreads that we want + * "reentrant" mutexes (i.e., once we can re-lock if we're already holding + * them.) */ static pthread_mutexattr_t attr_reentrant; -/* DOCDOC threads_initialized */ +/** True iff we've called tor_threads_init() */ static int threads_initialized = 0; /** Initialize <b>mutex</b> so it can be locked. Every mutex must be set * up eith tor_mutex_init() or tor_mutex_new(); not both. */ |