Fixed tryWait semaphore call
This commit is contained in:
parent
db511a6e32
commit
f4e3087f1a
1 changed files with 3 additions and 1 deletions
|
@ -231,7 +231,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