8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b91a7d commit 4529e68Copy full SHA for 4529e68
include/log4cplus/thread/impl/syncprims-pthreads.h
@@ -246,13 +246,12 @@ void
246
Semaphore::lock () const
247
{
248
int ret;
249
- while (LOG4CPLUS_UNLIKELY ((
+ while (
250
#if defined (LOG4CPLUS_USE_NAMED_POSIX_SEMAPHORE)
251
- ret = sem_wait (sem)
+ LOG4CPLUS_UNLIKELY ((ret = sem_wait (sem)) == -1)
252
#else
253
- ret = sem_wait (&sem)
+ LOG4CPLUS_UNLIKELY ((ret = sem_wait (&sem)) == -1)
254
#endif
255
- ) == -1)
256
&& errno == EINTR)
257
{ /* try again after signal */ }
258
0 commit comments