|
Serene Runtime 1.0.0
C runtime for the Serene programming language
|
#include <thread.h>
Data Fields | |
| pthread_t | handle |
| void(* | fn )(void *) |
The function the thread runs and its argument, recorded by srn_thread_spawn and read once by the backend when the thread starts. | |
| void * | arg |
| void(* srn_thread_t::fn) (void *) |
The function the thread runs and its argument, recorded by srn_thread_spawn and read once by the backend when the thread starts.
Keeping them on the thread carries them across the start boundary without an allocation. They are internal and callers do not touch them.