Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

barrier_struct Struct Reference

#include <WKFThreads.h>

List of all members.

Public Attributes

int padding1 [8]
wkf_mutex_t lock
int n_clients
int n_waiting
int phase
int sum
int result
wkf_cond_t wait_cv
int padding2 [8]


Member Data Documentation

wkf_mutex_t barrier_struct::lock
 

Mutex lock for the structure

Definition at line 236 of file WKFThreads.h.

Referenced by wkf_thread_barrier, wkf_thread_barrier_destroy, wkf_thread_barrier_init, and wkf_thread_barrier_init_proc_shared.

int barrier_struct::n_clients
 

Number of threads to wait for at barrier

Definition at line 237 of file WKFThreads.h.

Referenced by wkf_thread_barrier, wkf_thread_barrier_init, and wkf_thread_barrier_init_proc_shared.

int barrier_struct::n_waiting
 

Number of currently waiting threads

Definition at line 238 of file WKFThreads.h.

Referenced by wkf_thread_barrier, wkf_thread_barrier_init, and wkf_thread_barrier_init_proc_shared.

int barrier_struct::padding1[8]
 

Pad to avoid false sharing, cache aliasing

Definition at line 235 of file WKFThreads.h.

int barrier_struct::padding2[8]
 

Pad to avoid false sharing, cache aliasing

Definition at line 243 of file WKFThreads.h.

int barrier_struct::phase
 

Flag to separate waiters from fast workers

Definition at line 239 of file WKFThreads.h.

Referenced by wkf_thread_barrier, wkf_thread_barrier_init, and wkf_thread_barrier_init_proc_shared.

int barrier_struct::result
 

Answer to be returned by barrier_wait

Definition at line 241 of file WKFThreads.h.

Referenced by wkf_thread_barrier.

int barrier_struct::sum
 

Sum of arguments passed to barrier_wait

Definition at line 240 of file WKFThreads.h.

Referenced by wkf_thread_barrier, wkf_thread_barrier_init, and wkf_thread_barrier_init_proc_shared.

wkf_cond_t barrier_struct::wait_cv
 

Clients wait on condition variable to proceed

Definition at line 242 of file WKFThreads.h.

Referenced by wkf_thread_barrier, wkf_thread_barrier_destroy, wkf_thread_barrier_init, and wkf_thread_barrier_init_proc_shared.


The documentation for this struct was generated from the following file:
Generated on Fri Apr 19 02:46:11 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002