18 #ifndef _TRANK_INTERNAL_H 19 #define _TRANK_INTERNAL_H 24 #include <xeno_config.h> 26 struct trank_context {
27 timer_t periodic_timer;
31 extern __thread
__attribute__ ((tls_model (CONFIG_XENO_TLS_MODEL)))
32 struct trank_context trank_context;
34 static inline struct trank_context *trank_get_context(
void)
36 return &trank_context;
41 extern pthread_key_t trank_context_key;
43 static inline struct trank_context *trank_get_context(
void)
45 return pthread_getspecific(trank_context_key);
50 int trank_init_interface(
void);
52 extern sigset_t trank_sigperiod_set;
static int __attribute__((cold))
Test if a mutex structure contains a valid autoinitializer.
Definition: mutex.c:177