Fixed tryWait semaphore call
This commit is contained in:
parent
0d9fe0dbfe
commit
3f50ba6651
1 changed files with 3 additions and 1 deletions
|
@ -232,7 +232,9 @@ namespace IPC {
|
||||||
result = 0;
|
result = 0;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
do {
|
||||||
result = sem_trywait(mySem);
|
result = sem_trywait(mySem);
|
||||||
|
} while (result == -1 && errno == EINTR);
|
||||||
#endif
|
#endif
|
||||||
return (result == 0);
|
return (result == 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue