use SEM_INVERSION_SAFE
This commit is contained in:
1 parent
f9aae0438f
commit
2bcd1ad238
1 file changed
+1
-1
@@ -37,7 +37,7 @@ public:
|
||||
//
|
||||
int init ()
|
||||
{
|
||||
this->mutex = semMCreate(SEM_Q_PRIORITY|SEM_INVERSION_SAFE);
|
||||
this->mutex = semMCreate(SEM_Q_PRIORITY|SEM_INVERSION_SAFE|SEM_DELETE_SAFE);
|
||||
if (this->mutex==NULL)
|
||||
{
|
||||
return -1;
|
||||
|
||||
Reference in new issue
Block a user