Lockless Task Scheduler  v1.0a
A lockless task scheduler
Public Member Functions | Friends | List of all members
task_scheduler::base_thread_index< ValueType, TMemInterface > Class Template Reference

Public Member Functions

 base_thread_index (thread_pool *_pool, ValueType _value)
 Initializes a new instance of the base_thread_index class. More...
 
base_thread_indexoperator++ ()
 Operator++s this instance. More...
 
base_thread_indexoperator-- ()
 Operator–s this instance. More...
 
base_thread_indexoperator+= (const base_thread_index &rhs)
 Operator+=s the specified RHS. More...
 
base_thread_indexoperator+= (int32_t rhs)
 
base_thread_indexoperator-= (const base_thread_index &rhs)
 Operator-=s the specified RHS. More...
 
base_thread_indexoperator-= (int32_t rhs)
 Operator-=s the specified RHS. More...
 
 base_thread_index (const base_thread_index &other)
 Initializes a new instance of the base_thread_index class. More...
 
base_thread_indexoperator= (const base_thread_index &other)
 Operator=s the specified other. More...
 
 operator const ValueType ()
 Implements the operator const ValueType operator. More...
 
thread_mask_int_t get_mask ()
 Gets the mask. More...
 
bool is_set (thread_mask_int_t _other_mask)
 Determines whether the specified other mask is set. More...
 

Friends

base_thread_index operator+ (base_thread_index lhs, const base_thread_index &rhs)
 Operator+s the specified LHS. More...
 

Constructor & Destructor Documentation

◆ base_thread_index() [1/2]

template<typename ValueType, class TMemInterface>
task_scheduler::base_thread_index< ValueType, TMemInterface >::base_thread_index ( thread_pool _pool,
ValueType  _value 
)
inline

Initializes a new instance of the base_thread_index class.

Parameters
_poolThe pool.
_valueThe value.

◆ base_thread_index() [2/2]

template<typename ValueType, class TMemInterface>
task_scheduler::base_thread_index< ValueType, TMemInterface >::base_thread_index ( const base_thread_index< ValueType, TMemInterface > &  other)
inline

Initializes a new instance of the base_thread_index class.

Parameters
otherThe other.

Member Function Documentation

◆ get_mask()

template<typename ValueType, class TMemInterface>
thread_mask_int_t task_scheduler::base_thread_index< ValueType, TMemInterface >::get_mask ( )
inline

Gets the mask.

Returns
thread_mask_int_t.

◆ is_set()

template<typename ValueType, class TMemInterface>
bool task_scheduler::base_thread_index< ValueType, TMemInterface >::is_set ( thread_mask_int_t  _other_mask)
inline

Determines whether the specified other mask is set.

Parameters
_other_maskThe other mask.
Returns
bool.

◆ operator const ValueType()

template<typename ValueType, class TMemInterface>
task_scheduler::base_thread_index< ValueType, TMemInterface >::operator const ValueType ( )
inline

Implements the operator const ValueType operator.

Returns
The result of the operator.

◆ operator++()

template<typename ValueType, class TMemInterface>
base_thread_index& task_scheduler::base_thread_index< ValueType, TMemInterface >::operator++ ( )
inline

Operator++s this instance.

Returns
task_scheduler.base_thread_index<ValueType, TMemInterface> &.

◆ operator+=()

template<typename ValueType, class TMemInterface>
base_thread_index& task_scheduler::base_thread_index< ValueType, TMemInterface >::operator+= ( const base_thread_index< ValueType, TMemInterface > &  rhs)
inline

Operator+=s the specified RHS.

Parameters
rhsThe RHS.
Returns
task_scheduler.base_thread_index<ValueType, TMemInterface> &.

◆ operator--()

template<typename ValueType, class TMemInterface>
base_thread_index& task_scheduler::base_thread_index< ValueType, TMemInterface >::operator-- ( )
inline

Operator–s this instance.

Returns
task_scheduler.base_thread_index<ValueType, TMemInterface> &.

◆ operator-=() [1/2]

template<typename ValueType, class TMemInterface>
base_thread_index& task_scheduler::base_thread_index< ValueType, TMemInterface >::operator-= ( const base_thread_index< ValueType, TMemInterface > &  rhs)
inline

Operator-=s the specified RHS.

Parameters
rhsThe RHS.
Returns
task_scheduler.base_thread_index<ValueType, TMemInterface> &.

◆ operator-=() [2/2]

template<typename ValueType, class TMemInterface>
base_thread_index& task_scheduler::base_thread_index< ValueType, TMemInterface >::operator-= ( int32_t  rhs)
inline

Operator-=s the specified RHS.

Parameters
rhsThe RHS.
Returns
task_scheduler.base_thread_index<ValueType, TMemInterface> &.

◆ operator=()

template<typename ValueType, class TMemInterface>
base_thread_index& task_scheduler::base_thread_index< ValueType, TMemInterface >::operator= ( const base_thread_index< ValueType, TMemInterface > &  other)
inline

Operator=s the specified other.

Parameters
otherThe other.
Returns
task_scheduler.base_thread_index<ValueType, TMemInterface> &.

Friends And Related Function Documentation

◆ operator+

template<typename ValueType, class TMemInterface>
base_thread_index operator+ ( base_thread_index< ValueType, TMemInterface >  lhs,
const base_thread_index< ValueType, TMemInterface > &  rhs 
)
friend

Operator+s the specified LHS.

Parameters
lhsThe LHS.
rhsThe RHS.
Returns
task_scheduler.base_thread_index<ValueType, TMemInterface>.

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