ARGOBOTS  66b1c39742507d8df30e8d28c54839b961a14814
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Functions
cond.c File Reference
#include "abti.h"
#include <sys/time.h>
Include dependency graph for cond.c:

Go to the source code of this file.

Functions

int ABT_cond_create (ABT_cond *newcond)
 Create a new condition variable. More...
 
int ABT_cond_free (ABT_cond *cond)
 Free the condition variable. More...
 
int ABT_cond_wait (ABT_cond cond, ABT_mutex mutex)
 Wait on the condition. More...
 
static double convert_timespec_to_sec (const struct timespec *p_ts)
 
static void remove_thread (ABTI_cond *p_cond, ABTI_thread *p_thread)
 
int ABT_cond_timedwait (ABT_cond cond, ABT_mutex mutex, const struct timespec *abstime)
 Wait on the condition. More...
 
int ABT_cond_signal (ABT_cond cond)
 Signal a condition. More...
 
int ABT_cond_broadcast (ABT_cond cond)
 Broadcast a condition. More...
 

Function Documentation

static double convert_timespec_to_sec ( const struct timespec *  p_ts)
inlinestatic

Definition at line 94 of file cond.c.

Referenced by ABT_cond_timedwait().

static void remove_thread ( ABTI_cond p_cond,
ABTI_thread p_thread 
)
inlinestatic

Definition at line 101 of file cond.c.

Referenced by ABT_cond_timedwait().