libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
gimbal_thread.hpp
1#ifndef GIMBAL_THREAD_HPP
2#define GIMBAL_THREAD_HPP
3
5#include "gimbal_api_generators.hpp"
6
7namespace gimbal {
8
9class Thread:
11public:
12
13
14
15 static Thread current(void);
16
17};
18
19
20// ======= inlinez =======
21
22inline Thread Thread::current(void) {
23 Thread thd;
24 GblThread_current(&thd);
25 return thd;
26}
27
28
29
30}
31
32#endif // GIMBAL_THREAD_HPP