diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-11-06 14:40:20 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-11-06 14:40:20 -0500 |
commit | 9687efb386141e5fc46ab295b32bf2dff1f9845b (patch) | |
tree | 78b2ff8497ec3532205b7247e7e2ac1ea7b3f6b3 /src/lib/lock/compat_mutex_pthreads.c | |
parent | b994397f1af193f841703151af846ac497bbc0f7 (diff) | |
download | tor-9687efb386141e5fc46ab295b32bf2dff1f9845b.tar.gz tor-9687efb386141e5fc46ab295b32bf2dff1f9845b.zip |
Add a bunch of doxygen for things in src/lib.
Diffstat (limited to 'src/lib/lock/compat_mutex_pthreads.c')
-rw-r--r-- | src/lib/lock/compat_mutex_pthreads.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/lock/compat_mutex_pthreads.c b/src/lib/lock/compat_mutex_pthreads.c index f82ad9f0e8..a7f5986ecb 100644 --- a/src/lib/lock/compat_mutex_pthreads.c +++ b/src/lib/lock/compat_mutex_pthreads.c @@ -17,8 +17,14 @@ * "recursive" mutexes (i.e., once we can re-lock if we're already holding * them.) */ static pthread_mutexattr_t attr_recursive; +/** + * True iff <b>attr_recursive</b> has been initialized. + **/ static int attr_initialized = 0; +/** + * Initialize the locking module, if it is not already initialized. + **/ void tor_locking_init(void) { |