MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / enter

Method enter

src/common/classes/semaphore.cpp:160–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158 }
159
160 void SignalSafeSemaphore::enter()
161 {
162 do {
163 if (sem_wait(sem) != -1)
164 return;
165 } while (errno == EINTR);
166 system_call_failed::raise("semaphore.h: enter: sem_wait()");
167 }
168
169#ifdef HAVE_SEM_TIMEDWAIT
170 bool SignalSafeSemaphore::tryEnter(const int seconds, int milliseconds)

Callers 12

threadRoutineMethod · 0.45
waitForStateMethod · 0.45
StatusAccessorMethod · 0.45
getCiAiTransliteratorMethod · 0.45
isc_sync.cppFile · 0.45
lockMethod · 0.45
allocateInternalMethod · 0.45
releaseBlockMethod · 0.45
waitMethod · 0.45
RefMutexGuardMethod · 0.45
enterFunction · 0.45
lockMethod · 0.45

Calls 2

raiseFunction · 0.85
pthread_cond_waitFunction · 0.85

Tested by

no test coverage detected