summaryrefslogtreecommitdiff
path: root/src/odb.c
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2008-12-31 13:20:21 -0800
committerShawn O. Pearce <spearce@spearce.org>2008-12-31 13:36:55 -0800
commit028ef0de72da1ad4d1b2ee4a125ede81e3f2ebed (patch)
tree480cc70e318d8a80657f36fb55967477050cf3ec /src/odb.c
parentd44cfd460e2c52d67dea14838b03219967cf9cb9 (diff)
downloadlibgit2-028ef0de72da1ad4d1b2ee4a125ede81e3f2ebed.tar.gz
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>
Diffstat (limited to 'src/odb.c')
0 files changed, 0 insertions, 0 deletions