Changeset 660665f for libcfa/src/concurrency/kernel
- Timestamp:
- Jun 29, 2021, 5:35:19 PM (5 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
- Children:
- dcad80a
- Parents:
- 5a46e09 (diff), d02e547 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
libcfa/src/concurrency/kernel/startup.cfa (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel/startup.cfa
r5a46e09 r660665f 15 15 16 16 #define __cforall_thread__ 17 #define _GNU_SOURCE 17 18 18 19 // C Includes 19 20 #include <errno.h> // errno 21 #include <signal.h> 20 22 #include <string.h> // strerror 21 23 #include <unistd.h> // sysconf 24 22 25 extern "C" { 23 26 #include <limits.h> // PTHREAD_STACK_MIN 27 #include <unistd.h> // syscall 24 28 #include <sys/eventfd.h> // eventfd 25 29 #include <sys/mman.h> // mprotect … … 136 140 }; 137 141 142 #if defined(CFA_HAVE_LINUX_LIBRSEQ) 143 // No data needed 144 #elif defined(CFA_HAVE_LINUX_RSEQ_H) 145 extern "Cforall" { 146 __attribute__((aligned(128))) thread_local volatile struct rseq __cfaabi_rseq @= { 147 .cpu_id : RSEQ_CPU_ID_UNINITIALIZED, 148 }; 149 } 150 #else 151 // No data needed 152 #endif 153 138 154 //----------------------------------------------------------------------------- 139 155 // Struct to steal stack … … 468 484 self_mon_p = &self_mon; 469 485 link.next = 0p; 470 link.ts = 0;486 link.ts = -1llu; 471 487 preferred = -1u; 472 488 last_proc = 0p; … … 497 513 this.rdq.id = -1u; 498 514 this.rdq.target = -1u; 515 this.rdq.last = -1u; 499 516 this.rdq.cutoff = 0ull; 500 517 do_terminate = false;
Note:
See TracChangeset
for help on using the changeset viewer.