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;
|
||||
}
|
||||
#else
|
||||
result = sem_trywait(mySem);
|
||||
do {
|
||||
result = sem_trywait(mySem);
|
||||
} while (result == -1 && errno == EINTR);
|
||||
#endif
|
||||
return (result == 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue