VTK  9.1.0
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
vtkSimpleConditionVariable Class Reference

#include <vtkConditionVariable.h>

Public Member Functions

 vtkSimpleConditionVariable ()
 
 ~vtkSimpleConditionVariable ()
 
void Delete ()
 
void Signal ()
 Wake one thread waiting for the condition to change. More...
 
void Broadcast ()
 Wake all threads waiting for the condition to change. More...
 
int Wait (vtkSimpleMutexLock &mutex)
 Wait for the condition to change. More...
 

Static Public Member Functions

static vtkSimpleConditionVariableNew ()
 

Protected Attributes

vtkConditionType ConditionVariable
 

Detailed Description

Definition at line 111 of file vtkConditionVariable.h.

Constructor & Destructor Documentation

◆ vtkSimpleConditionVariable()

vtkSimpleConditionVariable::vtkSimpleConditionVariable ( )

◆ ~vtkSimpleConditionVariable()

vtkSimpleConditionVariable::~vtkSimpleConditionVariable ( )

Member Function Documentation

◆ New()

static vtkSimpleConditionVariable * vtkSimpleConditionVariable::New ( )
static

◆ Delete()

void vtkSimpleConditionVariable::Delete ( )
inline

Definition at line 119 of file vtkConditionVariable.h.

◆ Signal()

void vtkSimpleConditionVariable::Signal ( )

Wake one thread waiting for the condition to change.

◆ Broadcast()

void vtkSimpleConditionVariable::Broadcast ( )

Wake all threads waiting for the condition to change.

◆ Wait()

int vtkSimpleConditionVariable::Wait ( vtkSimpleMutexLock mutex)

Wait for the condition to change.

Upon entry, the mutex must be locked and the lock held by the calling thread. Upon exit, the mutex will be locked and held by the calling thread. Between entry and exit, the mutex will be unlocked and may be held by other threads.

Parameters
mutexThe mutex that should be locked on entry and will be locked on exit (but not in between)
Return values
Normally,thisfunction returns 0. Should a thread be interrupted by a signal, a non-zero value may be returned.

Member Data Documentation

◆ ConditionVariable

vtkConditionType vtkSimpleConditionVariable::ConditionVariable
protected

Definition at line 145 of file vtkConditionVariable.h.


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