Halide  13.0.4
Halide compiler and libraries
Halide::Runtime::Internal::Synchronization Namespace Reference

Classes

class  spin_control
 
struct  word_lock_queue_data
 
class  word_lock
 
struct  queue_data
 
struct  hash_bucket
 
struct  hash_table
 
struct  bucket_pair
 
struct  validate_action
 
struct  parking_control
 
struct  mutex_parking_control
 
class  fast_mutex
 
struct  signal_parking_control
 
struct  broadcast_parking_control
 
struct  wait_parking_control
 
class  fast_cond
 

Functions

WEAK hash_bucketlock_bucket (uintptr_t addr)
 
WEAK bucket_pair lock_bucket_pair (uintptr_t addr_from, uintptr_t addr_to)
 
WEAK void unlock_bucket_pair (bucket_pair &buckets)
 

Variables

constexpr int LOAD_FACTOR = 4
 
constexpr int HASH_TABLE_SIZE = MAX_THREADS * LOAD_FACTOR
 
WEAK hash_table table
 
constexpr int HASH_TABLE_BITS = 10
 

Function Documentation

◆ lock_bucket()

◆ lock_bucket_pair()

◆ unlock_bucket_pair()

Variable Documentation

◆ LOAD_FACTOR

constexpr int Halide::Runtime::Internal::Synchronization::LOAD_FACTOR = 4
constexpr

Definition at line 449 of file synchronization_common.h.

◆ HASH_TABLE_SIZE

constexpr int Halide::Runtime::Internal::Synchronization::HASH_TABLE_SIZE = MAX_THREADS * LOAD_FACTOR
constexpr

Definition at line 458 of file synchronization_common.h.

◆ table

WEAK hash_table Halide::Runtime::Internal::Synchronization::table

Definition at line 462 of file synchronization_common.h.

Referenced by lock_bucket(), and lock_bucket_pair().

◆ HASH_TABLE_BITS

constexpr int Halide::Runtime::Internal::Synchronization::HASH_TABLE_BITS = 10
constexpr

Definition at line 464 of file synchronization_common.h.