Changeset 1bcbf02
- Timestamp:
- Aug 31, 2022, 11:55:47 AM (20 months ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation
- Children:
- 594e1db
- Parents:
- e5c04b9
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/basic/tls_fetch_add.c
re5c04b9 r1bcbf02 7 7 // thread_local Boolean. This means the entire protocol is just to "mov" instructions making it extremely cheap. 8 8 9 _ Thread_localvolatile bool value;9 __thread volatile bool value; 10 10 11 11 void __attribute__((noinline)) do_call() { -
libcfa/src/concurrency/kernel/fwd.hfa
re5c04b9 r1bcbf02 35 35 extern "C" { 36 36 extern "Cforall" { 37 extern __attribute__((aligned(64))) _ Thread_localstruct KernelThreadData {37 extern __attribute__((aligned(64))) __thread struct KernelThreadData { 38 38 struct thread$ * volatile this_thread; 39 39 struct processor * volatile this_processor; -
libcfa/src/concurrency/kernel/private.hfa
re5c04b9 r1bcbf02 88 88 #elif defined(CFA_HAVE_LINUX_RSEQ_H) 89 89 extern "Cforall" { 90 extern __attribute__((aligned(64))) _ Thread_localvolatile struct rseq __cfaabi_rseq;90 extern __attribute__((aligned(64))) __thread volatile struct rseq __cfaabi_rseq; 91 91 } 92 92 #else -
libcfa/src/concurrency/kernel/startup.cfa
re5c04b9 r1bcbf02 133 133 //----------------------------------------------------------------------------- 134 134 // Global state 135 _ Thread_localstruct KernelThreadData __cfaabi_tls __attribute__ ((tls_model ( "initial-exec" ))) @= {135 __thread struct KernelThreadData __cfaabi_tls __attribute__ ((tls_model ( "initial-exec" ))) @= { 136 136 NULL, // cannot use 0p 137 137 NULL, … … 153 153 #elif defined(CFA_HAVE_LINUX_RSEQ_H) 154 154 extern "Cforall" { 155 __attribute__((aligned(64))) _ Thread_localvolatile struct rseq __cfaabi_rseq @= {155 __attribute__((aligned(64))) __thread volatile struct rseq __cfaabi_rseq @= { 156 156 .cpu_id : RSEQ_CPU_ID_UNINITIALIZED, 157 157 }; -
libcfa/src/concurrency/preemption.cfa
re5c04b9 r1bcbf02 666 666 // Kernel Signal Handlers 667 667 //============================================================================================= 668 __cfaabi_dbg_debug_do( static _ Thread_localvoid * last_interrupt = 0; )668 __cfaabi_dbg_debug_do( static __thread void * last_interrupt = 0; ) 669 669 670 670 // Context switch signal handler -
tests/concurrent/clib_tls.c
re5c04b9 r1bcbf02 14 14 15 15 16 _ Thread_localint checkval = 0xBAADF00D;16 __thread int checkval = 0xBAADF00D; 17 17 18 18 void init(void * ) { -
tests/concurrent/park/contention.cfa
re5c04b9 r1bcbf02 2 2 #include <thread.hfa> 3 3 4 _ Thread_localdrand48_data buffer = { 0 };4 __thread drand48_data buffer = { 0 }; 5 5 int myrand() { 6 6 long int result;
Note: See TracChangeset
for help on using the changeset viewer.