Fawkes API  Fawkes Development Version
waiter_thread_params Struct Reference

struct used for multithreading tests More...

Public Attributes

RefPtr< SyncPointManagermanager
 SyncPointManager passed to the thread. More...
 
uint thread_nr = 0
 Thread number. More...
 
SyncPoint::WakeupType type = SyncPoint::WAIT_FOR_ONE
 Wait type. More...
 
uint num_wait_calls
 Number of wait calls the thread should make. More...
 
string sp_identifier
 Name of the SyncPoint. More...
 
string component = ""
 Name of the component. More...
 
uint timeout_sec = 0
 timeout in sec More...
 
uint timeout_nsec = 0
 timeout in nsec More...
 
atomic< ThreadStatus > status
 current status of the thread More...
 
Mutex mutex_running
 Mutex to protect cond_running. More...
 
WaitCondition cond_running = WaitCondition(&mutex_running)
 WaitCondition to indicate that the thread is running. More...
 
Mutex mutex_finished
 Mutex to protect cond_finished. More...
 
WaitCondition cond_finished = WaitCondition(&mutex_finished)
 WaitCondition to indicate that the thread has finished. More...
 
Barrierstart_barrier = nullptr
 Barrier for startup synchronization. More...
 

Detailed Description

struct used for multithreading tests

Definition at line 333 of file test_syncpoint.cpp.

Member Data Documentation

◆ component

string waiter_thread_params::component = ""

Name of the component.

Definition at line 346 of file test_syncpoint.cpp.

◆ cond_finished

WaitCondition waiter_thread_params::cond_finished = WaitCondition(&mutex_finished)

WaitCondition to indicate that the thread has finished.

Definition at line 360 of file test_syncpoint.cpp.

◆ cond_running

WaitCondition waiter_thread_params::cond_running = WaitCondition(&mutex_running)

WaitCondition to indicate that the thread is running.

Definition at line 356 of file test_syncpoint.cpp.

◆ manager

RefPtr<SyncPointManager> waiter_thread_params::manager

SyncPointManager passed to the thread.

Definition at line 336 of file test_syncpoint.cpp.

◆ mutex_finished

Mutex waiter_thread_params::mutex_finished

Mutex to protect cond_finished.

Definition at line 358 of file test_syncpoint.cpp.

◆ mutex_running

Mutex waiter_thread_params::mutex_running

Mutex to protect cond_running.

Definition at line 354 of file test_syncpoint.cpp.

◆ num_wait_calls

uint waiter_thread_params::num_wait_calls

Number of wait calls the thread should make.

Definition at line 342 of file test_syncpoint.cpp.

◆ sp_identifier

string waiter_thread_params::sp_identifier

Name of the SyncPoint.

Definition at line 344 of file test_syncpoint.cpp.

◆ start_barrier

Barrier* waiter_thread_params::start_barrier = nullptr

Barrier for startup synchronization.

Definition at line 362 of file test_syncpoint.cpp.

◆ status

atomic<ThreadStatus> waiter_thread_params::status

current status of the thread

Definition at line 352 of file test_syncpoint.cpp.

◆ thread_nr

uint waiter_thread_params::thread_nr = 0

Thread number.

Definition at line 338 of file test_syncpoint.cpp.

◆ timeout_nsec

uint waiter_thread_params::timeout_nsec = 0

timeout in nsec

Definition at line 350 of file test_syncpoint.cpp.

◆ timeout_sec

uint waiter_thread_params::timeout_sec = 0

timeout in sec

Definition at line 348 of file test_syncpoint.cpp.

◆ type

SyncPoint::WakeupType waiter_thread_params::type = SyncPoint::WAIT_FOR_ONE

Wait type.

Definition at line 340 of file test_syncpoint.cpp.


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