|
Blender V5.3
|
Provides wrapper around system-specific atomic primitives, and some extensions (faked-atomic operations over float numbers). More...
#include "intern/atomic_ops_utils.h"#include "intern/atomic_ops_unix.h"#include "intern/atomic_ops_ext.h"Go to the source code of this file.
Provides wrapper around system-specific atomic primitives, and some extensions (faked-atomic operations over float numbers).
Definition in file atomic_ops.h.
| ATOMIC_INLINE float atomic_add_and_fetch_fl | ( | float * | p, |
| const float | x ) |
Definition at line 234 of file atomic_ops_ext.h.
References _ATOMIC_UNLIKELY, atomic_add_and_fetch_fl(), atomic_cas_uint32(), ATOMIC_INLINE, and x.
Referenced by atomic_add_and_fetch_fl(), and TEST().
| ATOMIC_INLINE int32_t atomic_add_and_fetch_int32 | ( | int32_t * | p, |
| int32_t | x ) |
Definition at line 178 of file atomic_ops_msvc.h.
References atomic_add_and_fetch_int32(), ATOMIC_INLINE, and x.
Referenced by atomic_add_and_fetch_int32(), blender::IMB_refImBuf(), and TEST().
| ATOMIC_INLINE int64_t atomic_add_and_fetch_int64 | ( | int64_t * | p, |
| int64_t | x ) |
Definition at line 99 of file atomic_ops_msvc.h.
References atomic_add_and_fetch_int64(), ATOMIC_INLINE, and x.
Referenced by atomic_add_and_fetch_int64(), and TEST().
| ATOMIC_INLINE unsigned int atomic_add_and_fetch_u | ( | unsigned int * | p, |
| unsigned int | x ) |
Definition at line 137 of file atomic_ops_ext.h.
References atomic_add_and_fetch_u(), atomic_add_and_fetch_uint32(), atomic_add_and_fetch_uint64(), ATOMIC_INLINE, and x.
Referenced by PathTrace::adaptive_sample(), atomic_add_and_fetch_u(), make_memhead_header(), and TEST().
| ATOMIC_INLINE uint32_t atomic_add_and_fetch_uint32 | ( | uint32_t * | p, |
| uint32_t | x ) |
Definition at line 137 of file atomic_ops_msvc.h.
References atomic_add_and_fetch_uint32(), ATOMIC_INLINE, and x.
Referenced by atomic_add_and_fetch_u(), atomic_add_and_fetch_uint32(), atomic_add_and_fetch_z(), atomic_sub_and_fetch_u(), atomic_sub_and_fetch_z(), blender::BKE_lib_libblock_session_uid_ensure(), blender::dynamic_paint_create_uv_surface_neighbor_cb(), blender::filelist_uid_generate(), and TEST().
| ATOMIC_INLINE uint64_t atomic_add_and_fetch_uint64 | ( | uint64_t * | p, |
| uint64_t | x ) |
Definition at line 63 of file atomic_ops_msvc.h.
References atomic_add_and_fetch_uint64(), ATOMIC_INLINE, and x.
Referenced by atomic_add_and_fetch_u(), atomic_add_and_fetch_uint64(), atomic_add_and_fetch_z(), atomic_sub_and_fetch_u(), atomic_sub_and_fetch_z(), blender::BLI_session_uid_generate(), blender::IMB_partial_update_changeset_id_next(), and TEST().
| ATOMIC_INLINE size_t atomic_add_and_fetch_z | ( | size_t * | p, |
| size_t | x ) |
Definition at line 58 of file atomic_ops_ext.h.
References atomic_add_and_fetch_uint32(), atomic_add_and_fetch_uint64(), atomic_add_and_fetch_z(), ATOMIC_INLINE, and x.
Referenced by atomic_add_and_fetch_z(), make_memhead_header(), Stats::mem_alloc(), and TEST().
| ATOMIC_INLINE float atomic_cas_float | ( | float * | v, |
| float | old, | ||
| float | _new ) |
Definition at line 228 of file atomic_ops_ext.h.
References atomic_cas_float(), atomic_cas_uint32(), and ATOMIC_INLINE.
Referenced by atomic_cas_float(), and TEST().
| ATOMIC_INLINE int32_t atomic_cas_int32 | ( | int32_t * | v, |
| int32_t | old, | ||
| int32_t | _new ) |
Definition at line 188 of file atomic_ops_msvc.h.
References atomic_cas_int32(), and ATOMIC_INLINE.
Referenced by atomic_cas_int32(), and TEST().
| ATOMIC_INLINE int64_t atomic_cas_int64 | ( | int64_t * | v, |
| int64_t | old, | ||
| int64_t | _new ) |
Definition at line 109 of file atomic_ops_msvc.h.
References atomic_cas_int64(), and ATOMIC_INLINE.
Referenced by atomic_cas_int64(), and TEST().
| ATOMIC_INLINE void * atomic_cas_ptr | ( | void ** | v, |
| void * | old, | ||
| void * | _new ) |
Definition at line 197 of file atomic_ops_ext.h.
References atomic_cas_ptr(), atomic_cas_uint32(), atomic_cas_uint64(), and ATOMIC_INLINE.
Referenced by atomic_cas_ptr(), blender::BLI_linklist_lockfree_insert(), CLG_logref_init(), blender::driver_compile_simple_expr(), blender::mempool_iter_threadsafe_step(), and TEST().
| ATOMIC_INLINE unsigned int atomic_cas_u | ( | unsigned int * | v, |
| unsigned int | old, | ||
| unsigned int | _new ) |
Definition at line 173 of file atomic_ops_ext.h.
References atomic_cas_u(), atomic_cas_uint32(), atomic_cas_uint64(), and ATOMIC_INLINE.
Referenced by atomic_cas_u(), and TEST().
| ATOMIC_INLINE uint32_t atomic_cas_uint32 | ( | uint32_t * | v, |
| uint32_t | old, | ||
| uint32_t | _new ) |
Definition at line 147 of file atomic_ops_msvc.h.
References atomic_cas_uint32(), and ATOMIC_INLINE.
Referenced by atomic_add_and_fetch_fl(), atomic_cas_float(), atomic_cas_ptr(), atomic_cas_u(), atomic_cas_uint32(), atomic_cas_z(), ImageCache::load_requested_tile(), ImageCache::load_requested_tiles(), and TEST().
| ATOMIC_INLINE uint64_t atomic_cas_uint64 | ( | uint64_t * | v, |
| uint64_t | old, | ||
| uint64_t | _new ) |
Definition at line 73 of file atomic_ops_msvc.h.
References atomic_cas_uint64(), and ATOMIC_INLINE.
Referenced by atomic_cas_ptr(), atomic_cas_u(), atomic_cas_uint64(), atomic_cas_z(), and TEST().
| ATOMIC_INLINE size_t atomic_cas_z | ( | size_t * | v, |
| size_t | old, | ||
| size_t | _new ) |
Definition at line 94 of file atomic_ops_ext.h.
References atomic_cas_uint32(), atomic_cas_uint64(), atomic_cas_z(), and ATOMIC_INLINE.
Referenced by atomic_cas_z(), atomic_fetch_and_update_max_z(), and TEST().
| ATOMIC_INLINE int32_t atomic_fetch_and_add_int32 | ( | int32_t * | p, |
| int32_t | x ) |
Definition at line 203 of file atomic_ops_msvc.h.
References atomic_fetch_and_add_int32(), ATOMIC_INLINE, and x.
Referenced by atomic_fetch_and_add_int32(), blender::BLI_task_parallel_thread_id(), blender::bm_edge_pair_elem_setup(), blender::project_bucket_iter_next(), and TEST().
| ATOMIC_INLINE int64_t atomic_fetch_and_add_int64 | ( | int64_t * | p, |
| int64_t | x ) |
Definition at line 124 of file atomic_ops_msvc.h.
References atomic_fetch_and_add_int64(), ATOMIC_INLINE, and x.
Referenced by atomic_fetch_and_add_int64(), and TEST().
| ATOMIC_INLINE unsigned int atomic_fetch_and_add_u | ( | unsigned int * | p, |
| unsigned int | x ) |
Definition at line 155 of file atomic_ops_ext.h.
References atomic_fetch_and_add_u(), atomic_fetch_and_add_uint32(), atomic_fetch_and_add_uint64(), ATOMIC_INLINE, and x.
Referenced by atomic_fetch_and_add_u(), blender::BLI_threadpool_init(), and TEST().
| ATOMIC_INLINE uint32_t atomic_fetch_and_add_uint32 | ( | uint32_t * | p, |
| uint32_t | x ) |
Definition at line 162 of file atomic_ops_msvc.h.
References atomic_fetch_and_add_uint32(), ATOMIC_INLINE, and x.
Referenced by PathTraceWorkCPU::adaptive_sampling_converge_filter_count_active(), atomic_fetch_and_add_u(), atomic_fetch_and_add_uint32(), atomic_fetch_and_add_z(), atomic_fetch_and_sub_u(), atomic_fetch_and_sub_z(), film_write_sample(), gpu_parallel_active_index_array_impl(), gpu_parallel_sorted_index_array(), integrator_state_shadow_catcher_split(), and TEST().
| ATOMIC_INLINE uint64_t atomic_fetch_and_add_uint64 | ( | uint64_t * | p, |
| uint64_t | x ) |
Definition at line 88 of file atomic_ops_msvc.h.
References atomic_fetch_and_add_uint64(), ATOMIC_INLINE, and x.
Referenced by atomic_fetch_and_add_u(), atomic_fetch_and_add_uint64(), atomic_fetch_and_add_z(), atomic_fetch_and_sub_u(), atomic_fetch_and_sub_z(), and TEST().
| ATOMIC_INLINE size_t atomic_fetch_and_add_z | ( | size_t * | p, |
| size_t | x ) |
Definition at line 76 of file atomic_ops_ext.h.
References atomic_fetch_and_add_uint32(), atomic_fetch_and_add_uint64(), atomic_fetch_and_add_z(), ATOMIC_INLINE, and x.
Referenced by atomic_fetch_and_add_z(), and TEST().
| ATOMIC_INLINE char atomic_fetch_and_and_char | ( | char * | p, |
| char | b ) |
Definition at line 189 of file atomic_ops_ext.h.
References atomic_fetch_and_and_char(), atomic_fetch_and_and_uint8(), ATOMIC_INLINE, and b.
Referenced by atomic_fetch_and_and_char(), and TEST().
| ATOMIC_INLINE int16_t atomic_fetch_and_and_int16 | ( | int16_t * | p, |
| int16_t | b ) |
Definition at line 227 of file atomic_ops_msvc.h.
References atomic_fetch_and_and_int16(), ATOMIC_INLINE, and x.
Referenced by atomic_fetch_and_and_int16(), and TEST().
| ATOMIC_INLINE int32_t atomic_fetch_and_and_int32 | ( | int32_t * | p, |
| int32_t | x ) |
Definition at line 213 of file atomic_ops_msvc.h.
References atomic_fetch_and_and_int32(), ATOMIC_INLINE, and x.
Referenced by atomic_fetch_and_and_int32(), blender::BKE_id_tag_clear_atomic(), and TEST().
| ATOMIC_INLINE int8_t atomic_fetch_and_and_int8 | ( | int8_t * | p, |
| int8_t | b ) |
Definition at line 258 of file atomic_ops_msvc.h.
References atomic_fetch_and_and_int8(), ATOMIC_INLINE, and b.
Referenced by atomic_fetch_and_and_int8(), and TEST().
| ATOMIC_INLINE uint32_t atomic_fetch_and_and_uint32 | ( | uint32_t * | p, |
| uint32_t | x ) |
Definition at line 172 of file atomic_ops_msvc.h.
References atomic_fetch_and_and_uint32(), ATOMIC_INLINE, and x.
Referenced by atomic_fetch_and_and_uint32(), and TEST().
| ATOMIC_INLINE uint8_t atomic_fetch_and_and_uint8 | ( | uint8_t * | p, |
| uint8_t | b ) |
Definition at line 237 of file atomic_ops_msvc.h.
References atomic_fetch_and_and_uint8(), ATOMIC_INLINE, and b.
Referenced by atomic_fetch_and_and_char(), atomic_fetch_and_and_uint8(), blender::dynamic_paint_effect_drip_cb(), and TEST().
| ATOMIC_INLINE char atomic_fetch_and_or_char | ( | char * | p, |
| char | b ) |
Definition at line 184 of file atomic_ops_ext.h.
References atomic_fetch_and_or_char(), atomic_fetch_and_or_uint8(), ATOMIC_INLINE, and b.
Referenced by atomic_fetch_and_or_char(), and TEST().
| ATOMIC_INLINE int16_t atomic_fetch_and_or_int16 | ( | int16_t * | p, |
| int16_t | b ) |
Definition at line 222 of file atomic_ops_msvc.h.
References atomic_fetch_and_or_int16(), ATOMIC_INLINE, and x.
Referenced by atomic_fetch_and_or_int16(), and TEST().
| ATOMIC_INLINE int32_t atomic_fetch_and_or_int32 | ( | int32_t * | p, |
| int32_t | x ) |
Definition at line 208 of file atomic_ops_msvc.h.
References atomic_fetch_and_or_int32(), ATOMIC_INLINE, and x.
Referenced by atomic_fetch_and_or_int32(), blender::BKE_id_tag_set_atomic(), and TEST().
| ATOMIC_INLINE int8_t atomic_fetch_and_or_int8 | ( | int8_t * | p, |
| int8_t | b ) |
Definition at line 268 of file atomic_ops_msvc.h.
References atomic_fetch_and_or_int8(), ATOMIC_INLINE, and b.
Referenced by atomic_fetch_and_or_int8(), and TEST().
| ATOMIC_INLINE uint32_t atomic_fetch_and_or_uint32 | ( | uint32_t * | p, |
| uint32_t | x ) |
Definition at line 167 of file atomic_ops_msvc.h.
References atomic_fetch_and_or_uint32(), ATOMIC_INLINE, and x.
Referenced by atomic_fetch_and_or_uint32(), blender::lib_override_library_operations_create_cb(), and TEST().
| ATOMIC_INLINE uint8_t atomic_fetch_and_or_uint8 | ( | uint8_t * | p, |
| uint8_t | b ) |
Definition at line 247 of file atomic_ops_msvc.h.
References atomic_fetch_and_or_uint8(), ATOMIC_INLINE, and b.
Referenced by atomic_fetch_and_or_char(), atomic_fetch_and_or_uint8(), blender::dynamic_paint_effect_drip_cb(), and TEST().
| ATOMIC_INLINE int64_t atomic_fetch_and_sub_int64 | ( | int64_t * | p, |
| int64_t | x ) |
Definition at line 129 of file atomic_ops_msvc.h.
References atomic_fetch_and_sub_int64(), ATOMIC_INLINE, and x.
Referenced by atomic_fetch_and_sub_int64(), and TEST().
| ATOMIC_INLINE unsigned int atomic_fetch_and_sub_u | ( | unsigned int * | p, |
| unsigned int | x ) |
Definition at line 164 of file atomic_ops_ext.h.
References atomic_fetch_and_add_uint32(), atomic_fetch_and_add_uint64(), atomic_fetch_and_sub_u(), ATOMIC_INLINE, and x.
Referenced by atomic_fetch_and_sub_u(), and TEST().
| ATOMIC_INLINE uint64_t atomic_fetch_and_sub_uint64 | ( | uint64_t * | p, |
| uint64_t | x ) |
Definition at line 93 of file atomic_ops_msvc.h.
References atomic_fetch_and_sub_uint64(), ATOMIC_INLINE, and x.
Referenced by atomic_fetch_and_sub_uint64(), and TEST().
| ATOMIC_INLINE size_t atomic_fetch_and_sub_z | ( | size_t * | p, |
| size_t | x ) |
Definition at line 85 of file atomic_ops_ext.h.
References atomic_fetch_and_add_uint32(), atomic_fetch_and_add_uint64(), atomic_fetch_and_sub_z(), ATOMIC_INLINE, and x.
Referenced by atomic_fetch_and_sub_z(), and TEST().
| ATOMIC_INLINE size_t atomic_fetch_and_update_max_z | ( | size_t * | p, |
| size_t | x ) |
Definition at line 121 of file atomic_ops_ext.h.
References atomic_cas_z(), atomic_fetch_and_update_max_z(), ATOMIC_INLINE, and x.
Referenced by atomic_fetch_and_update_max_z(), Stats::mem_alloc(), and TEST().
| ATOMIC_INLINE int32_t atomic_load_int32 | ( | const int32_t * | v | ) |
Definition at line 193 of file atomic_ops_msvc.h.
References __atomic_impl_load_generic, ATOMIC_INLINE, and atomic_load_int32().
Referenced by atomic_load_int32(), blender::IMB_makeSingleUser(), and TEST().
| ATOMIC_INLINE int64_t atomic_load_int64 | ( | const int64_t * | v | ) |
Definition at line 114 of file atomic_ops_msvc.h.
References __atomic_impl_load_generic, ATOMIC_INLINE, and atomic_load_int64().
Referenced by atomic_load_int64(), and TEST().
| ATOMIC_INLINE void * atomic_load_ptr | ( | void *const * | v | ) |
Definition at line 206 of file atomic_ops_ext.h.
References ATOMIC_INLINE, atomic_load_ptr(), atomic_load_uint32(), and atomic_load_uint64().
Referenced by atomic_load_ptr(), and TEST().
| ATOMIC_INLINE uint32_t atomic_load_uint32 | ( | const uint32_t * | v | ) |
Definition at line 152 of file atomic_ops_msvc.h.
References __atomic_impl_load_generic, ATOMIC_INLINE, and atomic_load_uint32().
Referenced by atomic_load_ptr(), atomic_load_uint32(), atomic_load_z(), ImageCache::load_requested_tile(), and TEST().
| ATOMIC_INLINE uint64_t atomic_load_uint64 | ( | const uint64_t * | v | ) |
Definition at line 78 of file atomic_ops_msvc.h.
References __atomic_impl_load_generic, ATOMIC_INLINE, and atomic_load_uint64().
Referenced by atomic_load_ptr(), atomic_load_uint64(), atomic_load_z(), blender::IMB_partial_update_changeset_id_current(), and TEST().
| ATOMIC_INLINE size_t atomic_load_z | ( | const size_t * | v | ) |
Definition at line 103 of file atomic_ops_ext.h.
References ATOMIC_INLINE, atomic_load_uint32(), atomic_load_uint64(), and atomic_load_z().
Referenced by atomic_load_z(), and TEST().
| ATOMIC_INLINE void atomic_store_int32 | ( | int32_t * | p, |
| int32_t | v ) |
Definition at line 198 of file atomic_ops_msvc.h.
References __atomic_impl_store_generic, ATOMIC_INLINE, and atomic_store_int32().
Referenced by atomic_store_int32(), and TEST().
| ATOMIC_INLINE void atomic_store_int64 | ( | int64_t * | p, |
| int64_t | v ) |
Definition at line 119 of file atomic_ops_msvc.h.
References __atomic_impl_store_generic, ATOMIC_INLINE, and atomic_store_int64().
Referenced by atomic_store_int64(), and TEST().
| ATOMIC_INLINE void atomic_store_ptr | ( | void ** | p, |
| void * | v ) |
Definition at line 215 of file atomic_ops_ext.h.
References ATOMIC_INLINE, atomic_store_ptr(), atomic_store_uint32(), and atomic_store_uint64().
Referenced by atomic_store_ptr(), and TEST().
| ATOMIC_INLINE void atomic_store_uint32 | ( | uint32_t * | p, |
| uint32_t | v ) |
Definition at line 157 of file atomic_ops_msvc.h.
References __atomic_impl_store_generic, ATOMIC_INLINE, and atomic_store_uint32().
Referenced by atomic_store_ptr(), atomic_store_uint32(), atomic_store_z(), and TEST().
| ATOMIC_INLINE void atomic_store_uint64 | ( | uint64_t * | p, |
| uint64_t | v ) |
Definition at line 83 of file atomic_ops_msvc.h.
References __atomic_impl_store_generic, ATOMIC_INLINE, and atomic_store_uint64().
Referenced by atomic_store_ptr(), atomic_store_uint64(), atomic_store_z(), and TEST().
| ATOMIC_INLINE void atomic_store_z | ( | size_t * | p, |
| size_t | v ) |
Definition at line 112 of file atomic_ops_ext.h.
References ATOMIC_INLINE, atomic_store_uint32(), atomic_store_uint64(), and atomic_store_z().
Referenced by atomic_store_z(), and TEST().
| ATOMIC_INLINE int32_t atomic_sub_and_fetch_int32 | ( | int32_t * | p, |
| int32_t | x ) |
Definition at line 183 of file atomic_ops_msvc.h.
References ATOMIC_INLINE, atomic_sub_and_fetch_int32(), and x.
Referenced by atomic_sub_and_fetch_int32(), blender::IMB_freeImBuf(), and TEST().
| ATOMIC_INLINE int64_t atomic_sub_and_fetch_int64 | ( | int64_t * | p, |
| int64_t | x ) |
Definition at line 104 of file atomic_ops_msvc.h.
References ATOMIC_INLINE, atomic_sub_and_fetch_int64(), and x.
Referenced by atomic_sub_and_fetch_int64(), and TEST().
| ATOMIC_INLINE unsigned int atomic_sub_and_fetch_u | ( | unsigned int * | p, |
| unsigned int | x ) |
Definition at line 146 of file atomic_ops_ext.h.
References atomic_add_and_fetch_uint32(), atomic_add_and_fetch_uint64(), ATOMIC_INLINE, atomic_sub_and_fetch_u(), and x.
Referenced by atomic_sub_and_fetch_u(), rem_memblock(), and TEST().
| ATOMIC_INLINE uint32_t atomic_sub_and_fetch_uint32 | ( | uint32_t * | p, |
| uint32_t | x ) |
Definition at line 142 of file atomic_ops_msvc.h.
References ATOMIC_INLINE, atomic_sub_and_fetch_uint32(), and x.
Referenced by atomic_sub_and_fetch_uint32(), blender::task_mempool_iter_func(), and TEST().
| ATOMIC_INLINE uint64_t atomic_sub_and_fetch_uint64 | ( | uint64_t * | p, |
| uint64_t | x ) |
Definition at line 68 of file atomic_ops_msvc.h.
References ATOMIC_INLINE, atomic_sub_and_fetch_uint64(), and x.
Referenced by atomic_sub_and_fetch_uint64(), and TEST().
| ATOMIC_INLINE size_t atomic_sub_and_fetch_z | ( | size_t * | p, |
| size_t | x ) |
Definition at line 67 of file atomic_ops_ext.h.
References atomic_add_and_fetch_uint32(), atomic_add_and_fetch_uint64(), ATOMIC_INLINE, atomic_sub_and_fetch_z(), and x.
Referenced by atomic_sub_and_fetch_z(), Stats::mem_free(), rem_memblock(), and TEST().