Scippy

UG

Ubiquity Generator framework

paraPthCondVar.h File Reference

Pthread condition variable for UG Framework. More...

#include <cassert>
#include "paraPthLock.h"

Go to the source code of this file.

Classes

class  ConditionVariable
 Condition variable. More...
 

Namespaces

namespace  UG
 

Macros

#define CONDITIONVARIABLE_WAIT(var, cond)
 Perform exception-safe waiting on a condition variable. This macro waits on VAR until COND is true. More...
 

Detailed Description

Pthread condition variable for UG Framework.

Author
Yuji Shinano

Many thanks to Daniel Junglas.

Definition in file paraPthCondVar.h.

Macro Definition Documentation

◆ CONDITIONVARIABLE_WAIT

#define CONDITIONVARIABLE_WAIT (   var,
  cond 
)
Value:
do { \
LockRAII raiiwait_((var)->getLock(), __FILE__, __LINE__); \
while (!(cond)) \
(var)->wait(); \
} while (0)

Perform exception-safe waiting on a condition variable. This macro waits on VAR until COND is true.

Definition at line 200 of file paraPthCondVar.h.