API Documentation
Loading...
Searching...
No Matches
ConcurrentOperation Class Reference

Contains thread-safe operations for inter-thread logic Increment and Decrement can be used to safely add to a shared uint04 value. More...

#include <ConcurrentOperation.h>

Static Public Member Functions

static uint04 decrement (volatile uint04 &value)
 
static uint04 increment (volatile uint04 &value)
 
static void notify (void *object)
 
static void notifyAll (void *object)
 
template<class t_type , class t_function_type >
static void ParallelGrainSort (t_type *data, uint04 len, uint04 grain_size, const t_function_type &function)
 
template<class t_type , class t_function_type >
static void ParallelSort (t_type *data, uint04 len, t_function_type function)
 
static void wait (void *object, std::unique_lock< std::mutex > &lock)
 
static void wait (void *object, uint08 time, std::unique_lock< std::mutex > &lock)
 

Detailed Description

Contains thread-safe operations for inter-thread logic Increment and Decrement can be used to safely add to a shared uint04 value.


Also contains sort, wait, and notify functions.

Member Function Documentation

◆ decrement()

static uint04 decrement ( volatile uint04 & value)
static

◆ increment()

static uint04 increment ( volatile uint04 & value)
static

◆ notify()

static void notify ( void * object)
static

◆ notifyAll()

static void notifyAll ( void * object)
static

◆ ParallelGrainSort()

template<class t_type , class t_function_type >
static void ParallelGrainSort ( t_type * data,
uint04 len,
uint04 grain_size,
const t_function_type & function )
inlinestatic

◆ ParallelSort()

template<class t_type , class t_function_type >
static void ParallelSort ( t_type * data,
uint04 len,
t_function_type function )
inlinestatic

◆ wait() [1/2]

static void wait ( void * object,
std::unique_lock< std::mutex > & lock )
static

◆ wait() [2/2]

static void wait ( void * object,
uint08 time,
std::unique_lock< std::mutex > & lock )
static

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