- File:
-
- 1 edited
-
libcfa/src/concurrency/kernel/private.hfa (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel/private.hfa
ra757ba1 r31c967b 20 20 #endif 21 21 22 #include <signal.h>23 24 22 #include "kernel.hfa" 25 23 #include "thread.hfa" … … 41 39 } 42 40 41 // Defines whether or not we *want* to use io_uring_enter as the idle_sleep blocking call 42 // #define CFA_WANT_IO_URING_IDLE 43 44 // Defines whether or not we *can* use io_uring_enter as the idle_sleep blocking call 45 #if defined(CFA_WANT_IO_URING_IDLE) && defined(CFA_HAVE_LINUX_IO_URING_H) 46 #if defined(CFA_HAVE_IORING_OP_READ) || (defined(CFA_HAVE_READV) && defined(CFA_HAVE_IORING_OP_READV)) 47 #define CFA_WITH_IO_URING_IDLE 48 #endif 49 #endif 50 43 51 // #define READYQ_USE_LINEAR_AVG 44 52 #define READYQ_USE_LOGDBL_AVG … … 55 63 #endif 56 64 57 extern "C" {58 __attribute__((visibility("protected"))) int __cfaabi_pthread_create(pthread_t *_thread, const pthread_attr_t *attr, void *(*start_routine) (void *), void *arg);59 __attribute__((visibility("protected"))) int __cfaabi_pthread_join(pthread_t _thread, void **retval);60 __attribute__((visibility("protected"))) pthread_t __cfaabi_pthread_self(void);61 __attribute__((visibility("protected"))) int __cfaabi_pthread_attr_init(pthread_attr_t *attr);62 __attribute__((visibility("protected"))) int __cfaabi_pthread_attr_destroy(pthread_attr_t *attr);63 __attribute__((visibility("protected"))) int __cfaabi_pthread_attr_setstack( pthread_attr_t *attr, void *stackaddr, size_t stacksize );64 __attribute__((visibility("protected"))) int __cfaabi_pthread_attr_getstacksize( const pthread_attr_t *attr, size_t *stacksize );65 __attribute__((visibility("protected"))) int __cfaabi_pthread_sigqueue(pthread_t _thread, int sig, const union sigval value);66 __attribute__((visibility("protected"))) int __cfaabi_pthread_sigmask( int how, const sigset_t *set, sigset_t *oset);67 }68 69 65 //----------------------------------------------------------------------------- 70 66 // Scheduler … … 157 153 #define TICKET_RUNNING ( 0) // thread is running 158 154 #define TICKET_UNBLOCK ( 1) // thread should ignore next block 159 #define TICKET_DEAD (0xDEAD) // thread should never be unparked160 155 161 156 //-----------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.