Commit 03dab460 authored by Philippe Gerum's avatar Philippe Gerum

lib/cobalt: export cobalt_thread_mode()

parent dcd9821a
......@@ -70,6 +70,8 @@ int cobalt_thread_join(pthread_t thread);
pid_t cobalt_thread_pid(pthread_t thread);
int cobalt_thread_mode(void);
int cobalt_monitor_init(cobalt_monitor_t *mon,
clockid_t clk_id, int flags);
......
......@@ -70,6 +70,11 @@ pid_t cobalt_thread_pid(pthread_t thread)
return XENOMAI_SYSCALL1(sc_cobalt_thread_getpid, thread);
}
int cobalt_thread_mode(void)
{
return cobalt_get_current_mode();
}
int cobalt_thread_join(pthread_t thread)
{
int ret, oldtype;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment