- File:
-
- 1 edited
-
libcfa/src/concurrency/kernel/private.hfa (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel/private.hfa
r28372f7 r31c967b 20 20 #endif 21 21 22 #include <signal.h>23 24 22 #include "kernel.hfa" 25 23 #include "thread.hfa" … … 50 48 #endif 51 49 #endif 50 52 51 // #define READYQ_USE_LINEAR_AVG 53 52 #define READYQ_USE_LOGDBL_AVG … … 64 63 #endif 65 64 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 78 65 //----------------------------------------------------------------------------- 79 66 // Scheduler … … 166 153 #define TICKET_RUNNING ( 0) // thread is running 167 154 #define TICKET_UNBLOCK ( 1) // thread should ignore next block 168 #define TICKET_DEAD (0xDEAD) // thread should never be unparked169 155 170 156 //-----------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.