summaryrefslogtreecommitdiff
path: root/src/central_freelist.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/central_freelist.h')
-rw-r--r--src/central_freelist.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/central_freelist.h b/src/central_freelist.h
index 4148680..0f66e0c 100644
--- a/src/central_freelist.h
+++ b/src/central_freelist.h
@@ -82,11 +82,11 @@ class CentralFreeList {
// Lock/Unlock the internal SpinLock. Used on the pthread_atfork call
// to set the lock in a consistent state before the fork.
- void Lock() {
+ void Lock() EXCLUSIVE_LOCK_FUNCTION(lock_) {
lock_.Lock();
}
- void Unlock() {
+ void Unlock() UNLOCK_FUNCTION(lock_) {
lock_.Unlock();
}