Halide
Halide::Runtime::Internal::work_queue_t Struct Reference

#include <thread_pool_common.h>

Public Member Functions

ALWAYS_INLINE bool running () const
 
ALWAYS_INLINE void assert_zeroed () const
 
ALWAYS_INLINE void reset ()
 

Public Attributes

halide_mutex mutex
 
int desired_threads_working
 
int zero_marker
 
workjobs
 
int threads_created
 
int a_team_size
 
int target_a_team_size
 
halide_cond wake_a_team
 
halide_cond wake_b_team
 
halide_cond wake_owners
 
int workers_sleeping
 
int owners_sleeping
 
halide_thread * threads [MAX_THREADS]
 
bool shutdown
 
bool initialized
 
int threads_reserved
 

Detailed Description

Definition at line 96 of file thread_pool_common.h.

Member Function Documentation

◆ running()

ALWAYS_INLINE bool Halide::Runtime::Internal::work_queue_t::running ( ) const
inline

Definition at line 143 of file thread_pool_common.h.

References shutdown.

◆ assert_zeroed()

ALWAYS_INLINE void Halide::Runtime::Internal::work_queue_t::assert_zeroed ( ) const
inline

◆ reset()

ALWAYS_INLINE void Halide::Runtime::Internal::work_queue_t::reset ( )
inline

Definition at line 160 of file thread_pool_common.h.

References memset().

Referenced by halide_shutdown_thread_pool().

Member Data Documentation

◆ mutex

◆ desired_threads_working

int Halide::Runtime::Internal::work_queue_t::desired_threads_working

◆ zero_marker

int Halide::Runtime::Internal::work_queue_t::zero_marker

Definition at line 105 of file thread_pool_common.h.

◆ jobs

work* Halide::Runtime::Internal::work_queue_t::jobs

◆ threads_created

int Halide::Runtime::Internal::work_queue_t::threads_created

◆ a_team_size

int Halide::Runtime::Internal::work_queue_t::a_team_size

◆ target_a_team_size

int Halide::Runtime::Internal::work_queue_t::target_a_team_size

◆ wake_a_team

◆ wake_b_team

◆ wake_owners

◆ workers_sleeping

int Halide::Runtime::Internal::work_queue_t::workers_sleeping

◆ owners_sleeping

int Halide::Runtime::Internal::work_queue_t::owners_sleeping

◆ threads

halide_thread* Halide::Runtime::Internal::work_queue_t::threads[MAX_THREADS]

◆ shutdown

bool Halide::Runtime::Internal::work_queue_t::shutdown

◆ initialized

bool Halide::Runtime::Internal::work_queue_t::initialized

◆ threads_reserved

int Halide::Runtime::Internal::work_queue_t::threads_reserved

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