mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 22:43:04 +01:00
Correction
This commit is contained in:
parent
5939e3cbe4
commit
bb1322a582
@ -32,7 +32,7 @@
|
||||
* Contributor(s):
|
||||
*
|
||||
*
|
||||
* $Id: semaphore.h,v 1.1 2003-09-16 20:45:31 skidder Exp $
|
||||
* $Id: semaphore.h,v 1.2 2003-09-16 21:45:47 skidder Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -104,10 +104,10 @@ public:
|
||||
system_call_failed::raise();
|
||||
} else {
|
||||
struct timespec timeout;
|
||||
timeout.tv_sec = time() + seconds;
|
||||
timeout.tv_sec = time(NULL) + seconds;
|
||||
timeout.tv_nsec = 0;
|
||||
if (sem_timedwait(&sem, &timeout) == 0) return true;
|
||||
if (errno == ETIMEOUT) return false;
|
||||
if (errno == ETIMEDOUT) return false;
|
||||
system_call_failed::raise();
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user