mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-02 20:08:21 +08:00
modify c++ style of locker class
This commit is contained in:
parent
59a7899fa3
commit
b637f0bb74
@ -68,7 +68,7 @@ void locker::init_mutex(bool use_spinlock acl_unused)
|
||||
#else
|
||||
acl_assert(pthread_mutexattr_init(&mutex_attr_) == 0);
|
||||
acl_assert(pthread_mutexattr_settype(&mutex_attr_,
|
||||
PTHREAD_MUTEX_RECURSIVE) == 0);
|
||||
PTHREAD_MUTEX_RECURSIVE) == 0);
|
||||
acl_assert(acl_pthread_mutex_init(mutex_, &mutex_attr_) == 0);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user