![]() |
MAOS
Multithreaded Adaptive Optics Simulator
|
Data Structures | |
| struct | thread_t |
Typedefs | |
| typedef void *(* | thread_fun) (void *) |
| typedef void *(* | thread_wrapfun) (thread_t *) |
Functions | |
| long | thread_id (void) |
| thread_t * | thread_prep (long start, long end, long nthread, thread_wrapfun fun, void *data) |
| prepare thread information | |
| pthread_t | thread_new (thread_fun fun, void *arg) |
| Create a thread and take it away. | |
| void | thread_block_signal () |
Functions regarding to threading.
Openmp version: 3.0 (200805): Introduced task 4.0 (201307): Introduced taskgroup. 4.5 (201511): Introduced taskloop and priority. Taskloop has implicit taskgroup.
| struct thread_t |
prepare thread information
Break out the job to be executed by multiple threads.
| pthread_t thread_new | ( | thread_fun | fun, |
| void * | arg | ||
| ) |
Create a thread and take it away.
Create a new thread and forget.
| void thread_block_signal | ( | ) |
After calling this routine, this thread will nolonger receive signals