Shawn O. Pearce 028ef0de72 Add a mutex and atomic counter abstraction and implementations
These abstractions can be used to implement an efficient resource
reference counter and simple mutual exclusion.  On pthreads we use
pthread_mutex_t, except when we are also on glibc and can directly
use its asm/atomic.h definitions.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
2008-12-31 13:36:55 -08:00
2008-12-30 07:31:03 -08:00
Description
Languages
C 95.4%
Perl 1.3%
JavaScript 1.1%
CMake 1.1%
Shell 0.7%
Other 0.3%