SolarCapture C Bindings
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
Functions
thread.h File Reference

sc_thread: Representation of a thread in SolarCapture. More...

Go to the source code of this file.

Functions

int sc_thread_alloc (struct sc_thread **thread_out, const struct sc_attr *attr, struct sc_session *scs)
 Allocate a SolarCapture thread. More...
 
struct sc_session * sc_thread_get_session (const struct sc_thread *thread)
 Return the session associated with a thread.
 
void sc_thread_get_time (const struct sc_thread *thread, struct timespec *time_out)
 Return a thread's "current time". More...
 
void * sc_thread_calloc (struct sc_thread *thread, size_t bytes)
 Allocate memory to be used by a thread. More...
 
void * sc_thread_calloc_aligned (struct sc_thread *thread, size_t bytes, int align)
 Allocate memory to be used by a thread. More...
 
void sc_thread_mfree (struct sc_thread *thread, void *mem)
 Free memory. More...
 
int sc_thread_poll (struct sc_thread *thread)
 Poll a thread. More...
 

Detailed Description

sc_thread: Representation of a thread in SolarCapture.