File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ int main(int argc, char **argv)
6464 for (unsigned int i=0 ;i<ITERATIONS;i++){
6565 SampleWorkerThread* myThread = new SampleWorkerThread (i);
6666// cout << "myThread[" << myThread->id << "] = [" << myThread << "]" << endl;
67- myPool->assignWork (myThread);
67+ myPool->assign_work (myThread);
6868 }
6969
7070 // destroy_pool(int maxPollSecs)
Original file line number Diff line number Diff line change @@ -73,11 +73,11 @@ void ThreadPool::destroy_pool(int maxPollSecs = 2)
7373}
7474
7575
76- bool ThreadPool::assignWork (WorkerThread *workerThread)
76+ bool ThreadPool::assign_work (WorkerThread *workerThread)
7777{
7878 pthread_mutex_lock (&mutexWorkCompletion);
7979 _incomplete_work++;
80- // cout << "assignWork ...incomapleteWork=" << _incomplete_work << endl;
80+ // cout << "assign_work ...incomapleteWork=" << _incomplete_work << endl;
8181 pthread_mutex_unlock (&mutexWorkCompletion);
8282
8383 sem_wait (&_available_thread);
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ class ThreadPool{
4848
4949 void destroy_pool (int maxPollSecs);
5050
51- bool assignWork (WorkerThread *worker);
51+ bool assign_work (WorkerThread *worker);
5252 bool fetchWork (WorkerThread **worker);
5353
5454 void initializeThreads ();
You can’t perform that action at this time.
0 commit comments