Skip to content

Commit b7ce2de

Browse files
committed
Refactoring
1 parent 7aa9eaa commit b7ce2de

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

threadpool.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void ThreadPool::initialize_thread()
4444
for (unsigned int i = 0; i < _num_thread; ++i)
4545
{
4646
pthread_t tempThread;
47-
pthread_create(&tempThread, NULL, &ThreadPool::threadExecute, (void *) this );
47+
pthread_create(&tempThread, NULL, &ThreadPool::thread_execute, (void *) this );
4848
//threadIdVec[i] = tempThread;
4949
}
5050

@@ -108,7 +108,7 @@ bool ThreadPool::fetch_work(WorkerThread **workerArg)
108108
return true;
109109
}
110110

111-
void *ThreadPool::threadExecute(void *param)
111+
void *ThreadPool::thread_execute(void *param)
112112
{
113113
WorkerThread *worker = NULL;
114114

threadpool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class ThreadPool{
5353

5454
void initialize_thread();
5555

56-
static void *threadExecute(void *param);
56+
static void *thread_execute(void *param);
5757

5858
static pthread_mutex_t mutexSync;
5959
static pthread_mutex_t mutexWorkCompletion;

0 commit comments

Comments
 (0)