- File:
-
- 1 edited
-
libcfa/src/concurrency/kernel/startup.cfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel/startup.cfa
ra0a949c rdd46fd3 15 15 16 16 #define __cforall_thread__ 17 #define _GNU_SOURCE 17 18 18 19 // #define __CFA_DEBUG_PRINT_RUNTIME_CORE__ 19 20 20 21 // C Includes 21 #include <errno.h> // errno22 #include <errno.h> // errno 22 23 #include <signal.h> 23 #include <string.h> // strerror24 #include <unistd.h> 25 #include <limits.h> // PTHREAD_STACK_MIN 24 #include <string.h> // strerror 25 #include <unistd.h> // sysconf 26 26 27 extern "C" { 27 #include <sys/eventfd.h> // eventfd 28 #include <sys/mman.h> // mprotect 29 #include <sys/resource.h> // getrlimit 28 #include <limits.h> // PTHREAD_STACK_MIN 29 #include <unistd.h> // syscall 30 #include <sys/eventfd.h> // eventfd 31 #include <sys/mman.h> // mprotect 32 #include <sys/resource.h> // getrlimit 30 33 } 31 34 … … 33 36 #include "kernel/private.hfa" 34 37 #include "iofwd.hfa" 35 #include "startup.hfa" // STARTUP_PRIORITY_XXX38 #include "startup.hfa" // STARTUP_PRIORITY_XXX 36 39 #include "limits.hfa" 37 40 #include "math.hfa" … … 147 150 __scheduler_RWLock_t __scheduler_lock @= { 0 }; 148 151 152 #if defined(CFA_HAVE_LINUX_LIBRSEQ) 153 // No data needed 154 #elif defined(CFA_HAVE_LINUX_RSEQ_H) 155 extern "Cforall" { 156 __attribute__((aligned(64))) __thread volatile struct rseq __cfaabi_rseq @= { 157 .cpu_id : RSEQ_CPU_ID_UNINITIALIZED, 158 }; 159 } 160 #else 161 // No data needed 162 #endif 163 149 164 //----------------------------------------------------------------------------- 150 165 // Struct to steal stack
Note:
See TracChangeset
for help on using the changeset viewer.