Skip to content

Commit

Permalink
Update mutex.h
Browse files Browse the repository at this point in the history
  • Loading branch information
mutouyun committed Jan 8, 2022
1 parent 15b572b commit 5eebaeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libipc/platform/posix/mutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class mutex {
ipc::error("fail pthread_mutexattr_init[%d]\n", eno);
return false;
}
IPC_UNUSED_ auto guard_mutex_attr = guard([&mutex_attr] { ::pthread_mutexattr_destroy(&mutex_attr); };
IPC_UNUSED_ auto guard_mutex_attr = guard([&mutex_attr] { ::pthread_mutexattr_destroy(&mutex_attr); });
if ((eno = ::pthread_mutexattr_setpshared(&mutex_attr, PTHREAD_PROCESS_SHARED)) != 0) {
ipc::error("fail pthread_mutexattr_setpshared[%d]\n", eno);
return false;
Expand Down

0 comments on commit 5eebaeb

Please sign in to comment.