Home
last modified time | relevance | path

Searched refs:atomic (Results 1 – 14 of 14) sorted by relevance

/xnu-12377.81.4/libkern/os/
H A Datomic.h70 #define os_atomic(type) std::atomic<type> volatile
107 inline volatile std::atomic<remove_volatile_t<T> > *
110 return reinterpret_cast<volatile std::atomic<remove_volatile_t<T> > *>(v); in cast_to_atomic_pointer()
114 inline volatile std::atomic<remove_volatile_t<T> > *
115 cast_to_atomic_pointer(std::atomic<T> *v) in cast_to_atomic_pointer()
117 return reinterpret_cast<volatile std::atomic<remove_volatile_t<T> > *>(v); in cast_to_atomic_pointer()
121 inline volatile std::atomic<remove_volatile_t<T> > *
122 cast_to_atomic_pointer(volatile std::atomic<T> *v) in cast_to_atomic_pointer()
124 return reinterpret_cast<volatile std::atomic<remove_volatile_t<T> > *>(v); in cast_to_atomic_pointer()
136 cast_to_nonatomic_pointer(std::atomic<T> *v) in cast_to_nonatomic_pointer()
[all …]
H A DMakefile10 atomic.h \
33 atomic.h \
38 atomic.h \
/xnu-12377.81.4/doc/primitives/
H A Datomics.md14 the [C11 memory model](https://en.cppreference.com/w/c/atomic/memory_order)
42 By default, C11 comes with two variants of each atomic "operation":
50 matching *seq_cst* atomic operations on your behalf.
97 (or `_Atomic volatile`), which allow for use of atomic
132 Qualifying atomic variables with `_Atomic` or even
141 atomic interfaces, but this header is considered obsolete
168 `os_atomic_store_wide` can be used to have access to atomic loads and store
171 ### Basic RMW (read/modify/write) atomic operations
173 The following basic atomic RMW operations exist:
175 - `inc`: atomic increment (equivalent to an atomic add of `1`),
[all …]
H A Dsched_cond.md13 * `sched_cond_init(sched_cond_t *cond)` - Initialize the atomic condition var
52 `assert_wait/thread_block` with atomic bit operations.
/xnu-12377.81.4/osfmk/machine/
H A DMakefile13 atomic.h \
/xnu-12377.81.4/osfmk/conf/
H A DMakefile.template152 mp.o_CWARNFLAGS_ADD += -Wno-atomic-implicit-seq-cst
153 pmCPU.o_CWARNFLAGS_ADD += -Wno-atomic-implicit-seq-cst
154 pmap_pcid.o_CWARNFLAGS_ADD += -Wno-atomic-implicit-seq-cst
155 xcpm_dvfs.o_CWARNFLAGS_ADD += -Wno-atomic-implicit-seq-cst
156 xcpm_fi.o_CWARNFLAGS_ADD += -Wno-atomic-implicit-seq-cst
157 xcpm_idle.o_CWARNFLAGS_ADD += -Wno-atomic-implicit-seq-cst
H A DMakefile.x86_645 CWARNFLAGS = $(CWARNFLAGS_STD) -Wno-atomic-implicit-seq-cst
/xnu-12377.81.4/osfmk/arm/
H A DMakefile12 atomic.h \
/xnu-12377.81.4/osfmk/i386/
H A DMakefile12 atomic.h \
/xnu-12377.81.4/osfmk/vm/
H A Dvm_map_internal.h342 bool atomic, in VME_OBJECT_SET() argument
347 entry->vme_atomic = atomic; in VME_OBJECT_SET()
349 if (atomic) { in VME_OBJECT_SET()
/xnu-12377.81.4/tests/sched/
H A DMakefile61 sched/yield_aggressor: OTHER_CFLAGS += -Wno-atomic-implicit-seq-cst
/xnu-12377.81.4/bsd/kern/
H A Duipc_socket.c1855 int32_t clen, int32_t atomic, int flags, int *sblocked) in sosendcheck() argument
1939 if ((atomic && resid > so->so_snd.sb_hiwat) || in sosendcheck()
1945 (atomic || (space < (int32_t)so->so_snd.sb_lowat) || in sosendcheck()
2049 int atomic = sosendallatonce(so) || top; in sosend() local
2138 error = sosendcheck(so, addr, resid, clen, atomic, flags, in sosend()
2308 if (freelist != NULL && atomic && in sosend()
2338 if (atomic && top == NULL && in sosend()
2384 (chainlength < sosendmaxchain || atomic || in sosend()
2601 int atomic = sosendallatonce(so); in sosend_list() local
2616 if (atomic == 0) { in sosend_list()
[all …]
/xnu-12377.81.4/doc/observability/
H A Dmt_stackshot.md39 allows for stackshot to grab an atomic snapshot of the entire system's state.
/xnu-12377.81.4/tests/vm/
H A Dvm_stress.cpp125 std::atomic<state> state{paused};