Remove trailing whitespace (#3668)

This commit is contained in:
John Vandenberg
2022-07-07 17:18:20 +08:00
committed by GitHub
parent 0af9524e16
commit 0e6e16645c
1330 changed files with 23570 additions and 23571 deletions

View File

@@ -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);