mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 10:32:56 +01:00
Remove trailing whitespace (#3668)
This commit is contained in:
@@ -30,12 +30,12 @@ namespace Poco {
|
||||
class Foundation_API SemaphoreImpl
|
||||
{
|
||||
protected:
|
||||
SemaphoreImpl(int n, int max);
|
||||
SemaphoreImpl(int n, int max);
|
||||
~SemaphoreImpl();
|
||||
void setImpl();
|
||||
void waitImpl();
|
||||
bool waitImpl(long milliseconds);
|
||||
|
||||
|
||||
private:
|
||||
volatile int _n;
|
||||
int _max;
|
||||
@@ -49,7 +49,7 @@ private:
|
||||
//
|
||||
inline void SemaphoreImpl::setImpl()
|
||||
{
|
||||
if (pthread_mutex_lock(&_mutex))
|
||||
if (pthread_mutex_lock(&_mutex))
|
||||
throw SystemException("cannot signal semaphore (lock)");
|
||||
if (_n < _max)
|
||||
{
|
||||
@@ -59,7 +59,7 @@ inline void SemaphoreImpl::setImpl()
|
||||
{
|
||||
pthread_mutex_unlock(&_mutex);
|
||||
throw SystemException("cannot signal semaphore: count would exceed maximum");
|
||||
}
|
||||
}
|
||||
if (pthread_cond_signal(&_cond))
|
||||
{
|
||||
pthread_mutex_unlock(&_mutex);
|
||||
|
||||
Reference in New Issue
Block a user