first commit
This commit is contained in:
14
CS4210/cs4210/proj3/src/client/worker.h
Normal file
14
CS4210/cs4210/proj3/src/client/worker.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef _WORKER_H_
|
||||
#define _WORKER_H_
|
||||
|
||||
/* Initializes the number of workers specified. */
|
||||
int workers_initialize(int thread_count);
|
||||
|
||||
/* The worker will attack the queue of jobs to completed and while there are
|
||||
more jobs to be peformed will do them. */
|
||||
void* worker_run(void* p);
|
||||
|
||||
/* This function will wait until all workers are done. */
|
||||
void wait_for_workers();
|
||||
|
||||
#endif/*_WORKER_H_*/
|
||||
Reference in New Issue
Block a user