Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/kernel/private.hfa

    ra757ba1 r31c967b  
    2020#endif
    2121
    22 #include <signal.h>
    23 
    2422#include "kernel.hfa"
    2523#include "thread.hfa"
     
    4139}
    4240
     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
    4351// #define READYQ_USE_LINEAR_AVG
    4452#define READYQ_USE_LOGDBL_AVG
     
    5563#endif
    5664
    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 
    6965//-----------------------------------------------------------------------------
    7066// Scheduler
     
    157153#define TICKET_RUNNING ( 0) // thread is running
    158154#define TICKET_UNBLOCK ( 1) // thread should ignore next block
    159 #define TICKET_DEAD    (0xDEAD) // thread should never be unparked
    160155
    161156//-----------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.