FRI-OS
Classes | Public Member Functions | List of all members
cond Class Reference

Wraper around POSIX condition variables. More...

#include <frios/posix/threads/cond.hpp>

Classes

struct  init_error
 Exception class for condition variable initialization error. More...
 

Public Member Functions

 cond (void)
 Default constructor of the condition variable. More...
 
 cond (const cond_attr &attributes)
 Construction of a condition variable with the specified attributes. More...
 
 cond (cond &&tmp)
 Condition variables are movable.
 
 ~cond (void)
 Destructor frees the resources asociated with the condition variable.
 
void wait (mutex::lock &lock)
 Wait on the condition variable.
 
void signal (void)
 Signal on the condition variable.
 
void broadcast (void)
 Broadcast on the condition variable.
 

Detailed Description

Wraper around POSIX condition variables.

Examples:
example/posix/threads-bingo_detached.cpp.

Constructor & Destructor Documentation

cond ( void  )

Default constructor of the condition variable.

Exceptions
init_error
cond ( const cond_attr attributes)

Construction of a condition variable with the specified attributes.

Exceptions
init_error

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