Lumiera  0.pre.03
»edityourfreedom«
condition.c File Reference

Go to the source code of this file.

Description

Condition variables.

Definition in file condition.c.

#include "lib/condition.h"

Functions

LumieraCondition lumiera_condition_destroy (LumieraCondition self, struct nobug_flag *flag, const struct nobug_context ctx)
 Destroy a condition variable. More...
 
LumieraCondition lumiera_condition_init (LumieraCondition self, const char *purpose, struct nobug_flag *flag, const struct nobug_context ctx)
 Initialise a condition variable. More...
 

Function Documentation

◆ lumiera_condition_init()

LumieraCondition lumiera_condition_init ( LumieraCondition  self,
const char *  purpose,
struct nobug_flag *  flag,
const struct nobug_context  ctx 
)

Initialise a condition variable.

Parameters
selfis a pointer to the condition variable to be initialised
Returns
self as given

Definition at line 31 of file condition.c.

References NULL.

Referenced by lumiera_thread_new(), lumiera_threadpool_init(), and TEST().

+ Here is the caller graph for this function:

◆ lumiera_condition_destroy()

LumieraCondition lumiera_condition_destroy ( LumieraCondition  self,
struct nobug_flag *  flag,
const struct nobug_context  ctx 
)

Destroy a condition variable.

Parameters
selfis a pointer to the condition variable to be destroyed
Returns
self as given

Definition at line 50 of file condition.c.

References LUMIERA_DIE.

Referenced by LUMIERA_CONDITION_SECTION(), lumiera_thread_destroy(), lumiera_threadpool_destroy(), and TEST().

+ Here is the caller graph for this function: