Tachyon (current)
Current Main Branch
|
Routines to generate a pool of threads which then grind through a dynamically load balanced work queue implemented as a shared iterator. More...
#include <threads.h>
Data Fields | |
int | padding1 [8] |
avoid false sharing, cache aliasing More... | |
rt_shared_iterator_t * | iter |
dynamic scheduler iterator More... | |
int | threadid |
ID of worker thread. More... | |
int | threadcount |
number of workers More... | |
void * | clientdata |
worker parameters More... | |
int | padding2 [8] |
avoid false sharing, cache aliasing More... | |
Routines to generate a pool of threads which then grind through a dynamically load balanced work queue implemented as a shared iterator.
No exception handling is possible, just a simple all-or-nothing attept. Useful for simple calculations that take very little time. An array of threads is generated, launched, and joined all with one call.
void* rt_threadlaunch_struct::clientdata |
worker parameters
Definition at line 588 of file threads.h.
Referenced by rt_threadlaunch(), and rt_threadlaunch_getdata().
rt_shared_iterator_t* rt_threadlaunch_struct::iter |
dynamic scheduler iterator
Definition at line 585 of file threads.h.
Referenced by rt_threadlaunch(), rt_threadlaunch_next_tile(), and rt_threadlaunch_setfatalerror().
int rt_threadlaunch_struct::padding1[8] |
int rt_threadlaunch_struct::padding2[8] |
int rt_threadlaunch_struct::threadcount |
number of workers
Definition at line 587 of file threads.h.
Referenced by rt_threadlaunch(), and rt_threadlaunch_getid().
int rt_threadlaunch_struct::threadid |
ID of worker thread.
Definition at line 586 of file threads.h.
Referenced by rt_threadlaunch(), and rt_threadlaunch_getid().