Halide 19.0.0
Halide compiler and libraries
|
#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 |
work * | jobs |
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 |
Definition at line 96 of file thread_pool_common.h.
|
inline |
Definition at line 143 of file thread_pool_common.h.
References shutdown.
|
inline |
Definition at line 148 of file thread_pool_common.h.
References halide_abort_if_false.
Referenced by Halide::Runtime::Internal::enqueue_work_already_locked().
|
inline |
Definition at line 160 of file thread_pool_common.h.
References memset().
Referenced by halide_shutdown_thread_pool().
halide_mutex Halide::Runtime::Internal::work_queue_t::mutex |
Definition at line 98 of file thread_pool_common.h.
Referenced by halide_default_do_par_for(), halide_default_do_parallel_tasks(), halide_default_semaphore_release(), halide_set_num_threads(), halide_shutdown_thread_pool(), Halide::Runtime::Internal::worker_thread(), and Halide::Runtime::Internal::worker_thread_already_locked().
int Halide::Runtime::Internal::work_queue_t::desired_threads_working |
Definition at line 101 of file thread_pool_common.h.
Referenced by Halide::Runtime::Internal::enqueue_work_already_locked(), and halide_set_num_threads().
int Halide::Runtime::Internal::work_queue_t::zero_marker |
Definition at line 105 of file thread_pool_common.h.
work* Halide::Runtime::Internal::work_queue_t::jobs |
Definition at line 108 of file thread_pool_common.h.
Referenced by Halide::Runtime::Internal::enqueue_work_already_locked(), and Halide::Runtime::Internal::worker_thread_already_locked().
int Halide::Runtime::Internal::work_queue_t::threads_created |
Definition at line 111 of file thread_pool_common.h.
Referenced by Halide::Runtime::Internal::enqueue_work_already_locked(), halide_shutdown_thread_pool(), and Halide::Runtime::Internal::worker_thread_already_locked().
int Halide::Runtime::Internal::work_queue_t::a_team_size |
Definition at line 118 of file thread_pool_common.h.
Referenced by Halide::Runtime::Internal::enqueue_work_already_locked(), and Halide::Runtime::Internal::worker_thread_already_locked().
int Halide::Runtime::Internal::work_queue_t::target_a_team_size |
Definition at line 118 of file thread_pool_common.h.
Referenced by Halide::Runtime::Internal::enqueue_work_already_locked(), and Halide::Runtime::Internal::worker_thread_already_locked().
halide_cond Halide::Runtime::Internal::work_queue_t::wake_a_team |
Definition at line 124 of file thread_pool_common.h.
Referenced by Halide::Runtime::Internal::enqueue_work_already_locked(), halide_default_semaphore_release(), halide_shutdown_thread_pool(), and Halide::Runtime::Internal::worker_thread_already_locked().
halide_cond Halide::Runtime::Internal::work_queue_t::wake_b_team |
Definition at line 124 of file thread_pool_common.h.
Referenced by Halide::Runtime::Internal::enqueue_work_already_locked(), halide_shutdown_thread_pool(), and Halide::Runtime::Internal::worker_thread_already_locked().
halide_cond Halide::Runtime::Internal::work_queue_t::wake_owners |
Definition at line 124 of file thread_pool_common.h.
Referenced by Halide::Runtime::Internal::enqueue_work_already_locked(), halide_default_semaphore_release(), halide_shutdown_thread_pool(), and Halide::Runtime::Internal::worker_thread_already_locked().
int Halide::Runtime::Internal::work_queue_t::workers_sleeping |
Definition at line 128 of file thread_pool_common.h.
Referenced by Halide::Runtime::Internal::enqueue_work_already_locked(), and Halide::Runtime::Internal::worker_thread_already_locked().
int Halide::Runtime::Internal::work_queue_t::owners_sleeping |
Definition at line 128 of file thread_pool_common.h.
Referenced by Halide::Runtime::Internal::enqueue_work_already_locked(), and Halide::Runtime::Internal::worker_thread_already_locked().
halide_thread* Halide::Runtime::Internal::work_queue_t::threads[MAX_THREADS] |
Definition at line 131 of file thread_pool_common.h.
Referenced by Halide::Runtime::Internal::enqueue_work_already_locked(), and halide_shutdown_thread_pool().
bool Halide::Runtime::Internal::work_queue_t::shutdown |
Definition at line 135 of file thread_pool_common.h.
Referenced by halide_shutdown_thread_pool(), running(), and Halide::Runtime::Internal::worker_thread_already_locked().
bool Halide::Runtime::Internal::work_queue_t::initialized |
Definition at line 135 of file thread_pool_common.h.
Referenced by Halide::Runtime::Internal::enqueue_work_already_locked(), and halide_shutdown_thread_pool().
int Halide::Runtime::Internal::work_queue_t::threads_reserved |
Definition at line 141 of file thread_pool_common.h.
Referenced by Halide::Runtime::Internal::enqueue_work_already_locked(), and Halide::Runtime::Internal::worker_thread_already_locked().