Serene Runtime 1.0.0
C runtime for the Serene programming language
Loading...
Searching...
No Matches
srn_thread_t Struct Reference

#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
 

Detailed Description

Definition at line 40 of file thread.h.

Field Documentation

◆ arg

void* srn_thread_t::arg

Definition at line 47 of file thread.h.

◆ fn

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.

Definition at line 46 of file thread.h.

◆ handle

pthread_t srn_thread_t::handle

Definition at line 41 of file thread.h.


The documentation for this struct was generated from the following file: