Threads in the new ISO C Standard from 2011
Threads in the new ISO C Standard from 2011
Threads in the new ISO C Standard from 2011
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Thread Functions<br />
<strong>in</strong>t thrd_create(thrd_t* thr, <strong>in</strong>t (*func)(void*), void* arg);<br />
void thrd_exit(<strong>in</strong>t res);<br />
<strong>in</strong>t thrd_jo<strong>in</strong>(thrd_t thr, <strong>in</strong>t* res);<br />
<strong>in</strong>t thrd_detach(thrd_t thr);<br />
thrd_t thrd_current(void);<br />
<strong>in</strong>t thrd_equal(thrd_t u, thrd_t v);<br />
void thrd_sleep(const xtime* xt);<br />
void thrd_yield(void);<br />
Jonas Skeppstedt (js@cs.lth.se) Lecture 6 2013 69 / 70