thread pool version of star.
Currently all modules are implemented as header files under include directory, if you want to use the modules, just add the following line in your CMakeLists.txt file:
include_directories(/{path-to-star_tp}/include)
or the following line in your Makefile:
CFLAGS += -I/{path-to-star_tp}/include
Task definition in star_tp.
Thread pool implementation.
Scheduler schedules the tasks in readyTaskQueue and notReadyTaskQueue. When a task is ready Scheduler moves it from notReadyTaskQueue to readyTaskQueue, from where threads in thread_pool get tasks.
<2017.12.01>
- using boost for thread pool.
- redesign the scheduler to manage dependencies between CTask objects.
<2017.11.29>
- thread safe queue, using condition variable instead of while loop when waiting for tasks.