06.08.2013 Views

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

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Header File<br />

C11 threads are similar to but simpler than Pthreads.<br />

thrd_t — thread type<br />

once_flag — a type for perform<strong>in</strong>g <strong>in</strong>itializations exactly one time<br />

mtx_t — mutex type<br />

cnd_t — condition variable type<br />

tss_t — thread specific storage (not <strong>the</strong> same as _Thread_local)<br />

Jonas Skeppstedt (js@cs.lth.se) Lecture 6 2013 62 / 70

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!