- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel/private.hfa
r31c967b r28372f7 20 20 #endif 21 21 22 #include <signal.h> 23 22 24 #include "kernel.hfa" 23 25 #include "thread.hfa" … … 48 50 #endif 49 51 #endif 50 51 52 // #define READYQ_USE_LINEAR_AVG 52 53 #define READYQ_USE_LOGDBL_AVG … … 63 64 #endif 64 65 66 extern "C" { 67 __attribute__((visibility("protected"))) int __cfaabi_pthread_create(pthread_t *_thread, const pthread_attr_t *attr, void *(*start_routine) (void *), void *arg); 68 __attribute__((visibility("protected"))) int __cfaabi_pthread_join(pthread_t _thread, void **retval); 69 __attribute__((visibility("protected"))) pthread_t __cfaabi_pthread_self(void); 70 __attribute__((visibility("protected"))) int __cfaabi_pthread_attr_init(pthread_attr_t *attr); 71 __attribute__((visibility("protected"))) int __cfaabi_pthread_attr_destroy(pthread_attr_t *attr); 72 __attribute__((visibility("protected"))) int __cfaabi_pthread_attr_setstack( pthread_attr_t *attr, void *stackaddr, size_t stacksize ); 73 __attribute__((visibility("protected"))) int __cfaabi_pthread_attr_getstacksize( const pthread_attr_t *attr, size_t *stacksize ); 74 __attribute__((visibility("protected"))) int __cfaabi_pthread_sigqueue(pthread_t _thread, int sig, const union sigval value); 75 __attribute__((visibility("protected"))) int __cfaabi_pthread_sigmask( int how, const sigset_t *set, sigset_t *oset); 76 } 77 65 78 //----------------------------------------------------------------------------- 66 79 // Scheduler … … 153 166 #define TICKET_RUNNING ( 0) // thread is running 154 167 #define TICKET_UNBLOCK ( 1) // thread should ignore next block 168 #define TICKET_DEAD (0xDEAD) // thread should never be unparked 155 169 156 170 //-----------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.