Halide
Halide::Runtime::Internal::Synchronization Namespace Reference

Classes

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

Functions

ALWAYS_INLINE void check_hash (uintptr_t hash)
 
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)
 
WEAK bool parking_control_validate (void *control, validate_action &action)
 
WEAK void parking_control_before_sleep (void *control)
 
WEAK uintptr_t parking_control_unpark (void *control, int unparked, bool more_waiters)
 
WEAK void parking_control_requeue_callback (void *control, const validate_action &action, bool one_to_wake, bool some_requeued)
 
WEAK uintptr_t park (uintptr_t addr, parking_control &control)
 
WEAK uintptr_t unpark_one (uintptr_t addr, parking_control &control)
 
WEAK uintptr_t unpark_all (uintptr_t addr, uintptr_t unpark_info)
 
WEAK int unpark_requeue (uintptr_t addr_from, uintptr_t addr_to, parking_control &control, uintptr_t unpark_info)
 
WEAK bool mutex_parking_control_validate (void *control, validate_action &action)
 
WEAK uintptr_t mutex_parking_control_unpark (void *control, int unparked, bool more_waiters)
 
WEAK uintptr_t signal_parking_control_unpark (void *control, int unparked, bool more_waiters)
 
WEAK bool broadcast_parking_control_validate (void *control, validate_action &action)
 
WEAK void broadcast_parking_control_requeue_callback (void *control, const validate_action &action, bool one_to_wake, bool some_requeued)
 
WEAK bool wait_parking_control_validate (void *control, validate_action &action)
 
WEAK void wait_parking_control_before_sleep (void *control)
 
WEAK uintptr_t wait_parking_control_unpark (void *control, int unparked, bool more_waiters)
 

Variables

WEAK char table_storage [sizeof(hash_table)]
 

Function Documentation

◆ check_hash()

ALWAYS_INLINE void Halide::Runtime::Internal::Synchronization::check_hash ( uintptr_t  hash)

Definition at line 500 of file synchronization_common.h.

References halide_assert, NULL, and table.

Referenced by lock_bucket(), and lock_bucket_pair().

◆ lock_bucket()

WEAK hash_bucket& Halide::Runtime::Internal::Synchronization::lock_bucket ( uintptr_t  addr)

◆ lock_bucket_pair()

WEAK bucket_pair Halide::Runtime::Internal::Synchronization::lock_bucket_pair ( uintptr_t  addr_from,
uintptr_t  addr_to 
)

◆ unlock_bucket_pair()

◆ parking_control_validate()

WEAK bool Halide::Runtime::Internal::Synchronization::parking_control_validate ( void *  control,
validate_action action 
)

Definition at line 604 of file synchronization_common.h.

◆ parking_control_before_sleep()

WEAK void Halide::Runtime::Internal::Synchronization::parking_control_before_sleep ( void *  control)

Definition at line 607 of file synchronization_common.h.

◆ parking_control_unpark()

WEAK uintptr_t Halide::Runtime::Internal::Synchronization::parking_control_unpark ( void *  control,
int  unparked,
bool  more_waiters 
)

Definition at line 608 of file synchronization_common.h.

◆ parking_control_requeue_callback()

WEAK void Halide::Runtime::Internal::Synchronization::parking_control_requeue_callback ( void *  control,
const validate_action action,
bool  one_to_wake,
bool  some_requeued 
)

Definition at line 611 of file synchronization_common.h.

◆ park()

◆ unpark_one()

◆ unpark_all()

◆ unpark_requeue()

◆ mutex_parking_control_validate()

WEAK bool Halide::Runtime::Internal::Synchronization::mutex_parking_control_validate ( void *  control,
validate_action action 
)

◆ mutex_parking_control_unpark()

WEAK uintptr_t Halide::Runtime::Internal::Synchronization::mutex_parking_control_unpark ( void *  control,
int  unparked,
bool  more_waiters 
)

◆ signal_parking_control_unpark()

WEAK uintptr_t Halide::Runtime::Internal::Synchronization::signal_parking_control_unpark ( void *  control,
int  unparked,
bool  more_waiters 
)

◆ broadcast_parking_control_validate()

◆ broadcast_parking_control_requeue_callback()

WEAK void Halide::Runtime::Internal::Synchronization::broadcast_parking_control_requeue_callback ( void *  control,
const validate_action action,
bool  one_to_wake,
bool  some_requeued 
)

◆ wait_parking_control_validate()

◆ wait_parking_control_before_sleep()

WEAK void Halide::Runtime::Internal::Synchronization::wait_parking_control_before_sleep ( void *  control)

◆ wait_parking_control_unpark()

WEAK uintptr_t Halide::Runtime::Internal::Synchronization::wait_parking_control_unpark ( void *  control,
int  unparked,
bool  more_waiters 
)

Variable Documentation

◆ table_storage

WEAK char Halide::Runtime::Internal::Synchronization::table_storage[sizeof(hash_table)]

Definition at line 497 of file synchronization_common.h.