doesn't work yet

$ g++ main.cpp process.cpp schedulers.cpp blockedqueue.cpp
readyqueue.cpp simulationCPU.cpp -o main
schedulers.cpp: In function ‘void* shortTermInitialize(void*)’:
schedulers.cpp:36:75: error: cannot convert ‘simulationCPU::runProcess’
from type ‘void* (simulationCPU::)(void*)’ to type ‘void* (*)(void*)’
pthread_create(&CPUthreads[i], NULL, cpus[i].runProcess, (void
*)r.pop());
^
schedulers.cpp: In function ‘void* shortTermScheduler(void*)’:
schedulers.cpp:43:35: error: cannot convert ‘__pthread_t**’ to
‘pthread_t {aka __pthread_t*}’ for argument ‘1’ to ‘int
pthread_join(pthread_t, void**)’
pthread_join(&CPUthreads[i], NULL);
^
schedulers.cpp:44:74: error: cannot convert ‘simulationCPU::runProcess’
from type ‘void* (simulationCPU::)(void*)’ to type ‘void* (*)(void*)’
pthread_create(&CPUthreads[i], NULL, cpus[i].runProcess, (void
*)r.pop());