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

@@ -36,12 +36,12 @@ class WorkNotification: public Notification
{
public:
typedef AutoPtr<WorkNotification> Ptr;
WorkNotification(int data):
_data(data)
{
}
int data() const
{
return _data;
@@ -62,7 +62,7 @@ public:
_queue(queue)
{
}
void run()
{
Poco::Random rnd;
@@ -84,7 +84,7 @@ public:
else break;
}
}
private:
std::string _name;
NotificationQueue& _queue;
@@ -98,7 +98,7 @@ FastMutex Worker::_mutex;
int main(int argc, char** argv)
{
NotificationQueue queue;
// create some worker threads
Worker worker1("Worker 1", queue);
Worker worker2("Worker 2", queue);
@@ -114,15 +114,15 @@ int main(int argc, char** argv)
{
queue.enqueueNotification(new WorkNotification(i));
}
// wait until queue is empty and all threads are
// wait until queue is empty and all threads are
// waiting for new work.
while (!queue.empty()) Thread::sleep(200);
Thread::sleep(500);
// stop all worker threads
queue.wakeUpAll();
ThreadPool::defaultPool().joinAll();
return 0;
}