ARGOBOTS  49e659a377bb5f19c60a64377ed410e7291037c6
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
abti_global.h
Go to the documentation of this file.
1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
2 /*
3  * See COPYRIGHT in top-level directory.
4  */
5 
6 #ifndef ABTI_GLOBAL_H_INCLUDED
7 #define ABTI_GLOBAL_H_INCLUDED
8 
9 /* Inlined functions for Global Data */
10 
11 static inline size_t ABTI_global_get_thread_stacksize(void)
12 {
13  return gp_ABTI_global->thread_stacksize;
14 }
15 
16 static inline size_t ABTI_global_get_sched_stacksize(void)
17 {
18  return gp_ABTI_global->sched_stacksize;
19 }
20 
21 static inline size_t ABTI_global_get_sched_event_freq(void)
22 {
23  return gp_ABTI_global->sched_event_freq;
24 }
25 
26 static inline long ABTI_global_get_sched_sleep_nsec(void)
27 {
28  return gp_ABTI_global->sched_sleep_nsec;
29 }
30 
31 static inline ABTI_ythread *ABTI_global_get_main(void)
32 {
33  return gp_ABTI_global->p_main_ythread;
34 }
35 
36 static inline uint32_t ABTI_global_get_mutex_max_handovers(void)
37 {
38  return gp_ABTI_global->mutex_max_handovers;
39 }
40 
41 static inline uint32_t ABTI_global_get_mutex_max_wakeups(void)
42 {
43  return gp_ABTI_global->mutex_max_wakeups;
44 }
45 
46 #endif /* ABTI_GLOBAL_H_INCLUDED */
ABTI_global * gp_ABTI_global
Definition: global.c:14