modify c++ style of locker class

This commit is contained in:
zhengshuxin 2017-08-22 15:28:12 +08:00
parent 59a7899fa3
commit b637f0bb74

View File

@ -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
}