Tachyon (current)  Current Main Branch
Data Fields
rt_threadlaunch_struct Struct Reference

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_titer
 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...
 

Detailed Description

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.

Definition at line 583 of file threads.h.

Field Documentation

◆ clientdata

void* rt_threadlaunch_struct::clientdata

worker parameters

Definition at line 588 of file threads.h.

Referenced by rt_threadlaunch(), and rt_threadlaunch_getdata().

◆ iter

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().

◆ padding1

int rt_threadlaunch_struct::padding1[8]

avoid false sharing, cache aliasing

Definition at line 584 of file threads.h.

◆ padding2

int rt_threadlaunch_struct::padding2[8]

avoid false sharing, cache aliasing

Definition at line 589 of file threads.h.

◆ threadcount

int rt_threadlaunch_struct::threadcount

number of workers

Definition at line 587 of file threads.h.

Referenced by rt_threadlaunch(), and rt_threadlaunch_getid().

◆ threadid

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().


The documentation for this struct was generated from the following file: