6 #ifndef ABTI_XSTREAM_H_INCLUDED
7 #define ABTI_XSTREAM_H_INCLUDED
11 static inline ABTI_xstream *ABTI_xstream_get_ptr(
ABT_xstream xstream)
13 #ifndef ABT_CONFIG_DISABLE_ERROR_CHECK
14 ABTI_xstream *p_xstream;
18 p_xstream = (ABTI_xstream *)xstream;
22 return (ABTI_xstream *)xstream;
26 static inline ABT_xstream ABTI_xstream_get_handle(ABTI_xstream *p_xstream)
28 #ifndef ABT_CONFIG_DISABLE_ERROR_CHECK
30 if (p_xstream == NULL) {
42 static inline ABTI_pool *ABTI_xstream_get_main_pool(ABTI_xstream *p_xstream)
44 ABT_pool pool = p_xstream->p_main_sched->pools[0];
45 return ABTI_pool_get_ptr(pool);
48 static inline ABTI_local *ABTI_xstream_get_local(ABTI_xstream *p_xstream)
50 return (ABTI_local *)p_xstream;