- File:
-
- 1 edited
-
libcfa/src/concurrency/kernel/startup.cfa (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel/startup.cfa
ref94ae7 rab5baab 15 15 16 16 #define __cforall_thread__ 17 #define _GNU_SOURCE18 17 19 18 // C Includes 20 19 #include <errno.h> // errno 21 #include <signal.h>22 20 #include <string.h> // strerror 23 21 #include <unistd.h> // sysconf 24 25 22 extern "C" { 26 23 #include <limits.h> // PTHREAD_STACK_MIN 27 #include <unistd.h> // syscall28 24 #include <sys/eventfd.h> // eventfd 29 25 #include <sys/mman.h> // mprotect … … 140 136 }; 141 137 142 #if defined(CFA_HAVE_LINUX_LIBRSEQ)143 // No data needed144 #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 #else151 // No data needed152 #endif153 154 138 //----------------------------------------------------------------------------- 155 139 // Struct to steal stack … … 484 468 self_mon_p = &self_mon; 485 469 link.next = 0p; 486 link.ts = -1llu;470 link.ts = 0; 487 471 preferred = -1u; 488 472 last_proc = 0p; … … 513 497 this.rdq.id = -1u; 514 498 this.rdq.target = -1u; 515 this.rdq.last = -1u;516 499 this.rdq.cutoff = 0ull; 517 500 do_terminate = false;
Note:
See TracChangeset
for help on using the changeset viewer.