STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | Friends | List of all members
Concurrency::details::_TaskCollectionBase Class Reference

#include <concrt.h>

Inheritance diagram for Concurrency::details::_TaskCollectionBase:
Concurrency::details::_StructuredTaskCollection Concurrency::details::_TaskCollection

Public Member Functions

 _TaskCollectionBase ()
 
 _TaskCollectionBase (const _TaskCollectionBase &)=delete
 
 _TaskCollectionBase (_CancellationTokenState *_PTokenState)
 
_TaskCollectionBaseoperator= (const _TaskCollectionBase &)=delete
 
void_OwningContext () const
 
int _InliningDepth () const
 
bool _IsCurrentlyInlined () const
 
bool _IsStructured ()
 
_CancellationTokenState_GetTokenState (_CancellationTokenRegistration **_PRegistration=NULL)
 

Protected Types

enum  _TaskCollectionBaseState { _CollectionNotInitialized = LONG_MIN, _CollectionInitializationInProgress = LONG_MIN+1, _CollectionInitialized = 0 }
 

Protected Member Functions

std::exception_ptr * _Exception () const
 
bool _IsAbnormalExit () const
 
size_t _CancelState () const
 
bool _IsMarkedForCancellation () const
 
bool _PerformedInlineCancel () const
 
bool _PerformedPendingCancel () const
 
_TaskCollectionBase_SafeGetParent ()
 
bool _WillInterruptForPendingCancel ()
 
void _RaisedException ()
 
void _RethrowException ()
 
bool _MarkCancellation ()
 
void _FinishCancelState (size_t _NewCancelState)
 
void _RaisedCancel ()
 

Protected Attributes

_TaskCollectionBase_M_pParent
 
int _M_inliningDepth: 28
 
int _M_inlineFlags: 4
 
_CancellationTokenState_M_pTokenState
 
void_M_pOwningContext
 
long _M_unpoppedChores
 
volatile long _M_completedStolenChores
 
std::exception_ptr * _M_pException
 

Static Protected Attributes

static const size_t _S_cancelBitsMask = 0x3
 
static const size_t _S_cancelNone = 0x0
 
static const size_t _S_cancelStarted = 0x1
 
static const size_t _S_cancelDeferredShootdownOwner = 0x2
 
static const size_t _S_cancelShotdownOwner = 0x3
 
static const size_t _S_nonNull = 0x8
 
static const size_t _S_cancelException = 0xC
 
static const int _S_notInlined = -1
 
static const int _S_structured = 0x00000001
 
static const int _S_localCancel = 0x00000002
 
static const int _S_reserved = 0x0000000C
 

Friends

class ::Concurrency::details::_UnrealizedChore
 
class ::Concurrency::details::ContextBase
 

Member Enumeration Documentation

Enumerator
_CollectionNotInitialized 
_CollectionInitializationInProgress 
_CollectionInitialized 

Constructor & Destructor Documentation

Concurrency::details::_TaskCollectionBase::_TaskCollectionBase ( )
inline
4313  :
4316  _M_unpoppedChores(0),
4319  {
4320  }
#define NULL
Definition: vcruntime.h:236
long _M_unpoppedChores
Definition: concrt.h:4456
std::exception_ptr * _M_pException
Definition: concrt.h:4468
int _M_inliningDepth
Definition: concrt.h:4445
static const int _S_notInlined
Definition: concrt.h:4482
_CancellationTokenState * _M_pTokenState
Definition: concrt.h:4449
volatile long _M_completedStolenChores
Definition: concrt.h:4459
Concurrency::details::_TaskCollectionBase::_TaskCollectionBase ( const _TaskCollectionBase )
delete
Concurrency::details::_TaskCollectionBase::_TaskCollectionBase ( _CancellationTokenState _PTokenState)
inline
4324  :
4325  _M_pTokenState(_PTokenState),
4327  _M_unpoppedChores(0),
4330  {
4331  }
#define NULL
Definition: vcruntime.h:236
long _M_unpoppedChores
Definition: concrt.h:4456
std::exception_ptr * _M_pException
Definition: concrt.h:4468
int _M_inliningDepth
Definition: concrt.h:4445
static const int _S_notInlined
Definition: concrt.h:4482
_CancellationTokenState * _M_pTokenState
Definition: concrt.h:4449
volatile long _M_completedStolenChores
Definition: concrt.h:4459

Member Function Documentation

size_t Concurrency::details::_TaskCollectionBase::_CancelState ( ) const
inlineprotected
4388  {
4389  return (size_t) _M_pException & _S_cancelBitsMask;
4390  }
std::exception_ptr * _M_pException
Definition: concrt.h:4468
static const size_t _S_cancelBitsMask
Definition: concrt.h:4471
std::exception_ptr* Concurrency::details::_TaskCollectionBase::_Exception ( ) const
inlineprotected
4376  {
4377  return (std::exception_ptr *) ((size_t)_M_pException & ~_S_cancelBitsMask);
4378  }
std::exception_ptr * _M_pException
Definition: concrt.h:4468
unsigned int size_t
Definition: sourceannotations.h:19
static const size_t _S_cancelBitsMask
Definition: concrt.h:4471
void Concurrency::details::_TaskCollectionBase::_FinishCancelState ( size_t  _NewCancelState)
protected
_CancellationTokenState* Concurrency::details::_TaskCollectionBase::_GetTokenState ( _CancellationTokenRegistration **  _PRegistration = NULL)
int Concurrency::details::_TaskCollectionBase::_InliningDepth ( ) const
inline
4343  {
4344  return _M_inliningDepth;
4345  }
int _M_inliningDepth
Definition: concrt.h:4445
bool Concurrency::details::_TaskCollectionBase::_IsAbnormalExit ( ) const
inlineprotected
4382  {
4383  return _M_pException != NULL;
4384  }
#define NULL
Definition: vcruntime.h:236
std::exception_ptr * _M_pException
Definition: concrt.h:4468
bool Concurrency::details::_TaskCollectionBase::_IsCurrentlyInlined ( ) const
inline
4349  {
4350  return (_M_inliningDepth != _S_notInlined);
4351  }
int _M_inliningDepth
Definition: concrt.h:4445
static const int _S_notInlined
Definition: concrt.h:4482
bool Concurrency::details::_TaskCollectionBase::_IsMarkedForCancellation ( ) const
inlineprotected
4394  {
4395  return (_CancelState() & _S_cancelBitsMask) != 0;
4396  }
size_t _CancelState() const
Definition: concrt.h:4387
static const size_t _S_cancelBitsMask
Definition: concrt.h:4471
bool Concurrency::details::_TaskCollectionBase::_IsStructured ( )
inline
4355  {
4356  return (_M_inlineFlags & _S_structured) != 0;
4357  }
static const int _S_structured
Definition: concrt.h:4485
int _M_inlineFlags
Definition: concrt.h:4446
bool Concurrency::details::_TaskCollectionBase::_MarkCancellation ( )
protected
void* Concurrency::details::_TaskCollectionBase::_OwningContext ( ) const
inline
4337  {
4338  return _M_pOwningContext;
4339  }
void * _M_pOwningContext
Definition: concrt.h:4452
bool Concurrency::details::_TaskCollectionBase::_PerformedInlineCancel ( ) const
inlineprotected
4400  {
4403  }
#define _CONCRT_ASSERT(x)
Definition: concrt.h:123
size_t _CancelState() const
Definition: concrt.h:4387
static const size_t _S_cancelShotdownOwner
Definition: concrt.h:4475
static const size_t _S_cancelStarted
Definition: concrt.h:4473
bool Concurrency::details::_TaskCollectionBase::_PerformedPendingCancel ( ) const
inlineprotected
4406  {
4409  }
static const size_t _S_cancelDeferredShootdownOwner
Definition: concrt.h:4474
#define _CONCRT_ASSERT(x)
Definition: concrt.h:123
size_t _CancelState() const
Definition: concrt.h:4387
static const size_t _S_cancelStarted
Definition: concrt.h:4473
void Concurrency::details::_TaskCollectionBase::_RaisedCancel ( )
protected
void Concurrency::details::_TaskCollectionBase::_RaisedException ( )
protected
void Concurrency::details::_TaskCollectionBase::_RethrowException ( )
protected
_TaskCollectionBase* Concurrency::details::_TaskCollectionBase::_SafeGetParent ( )
inlineprotected
4413  {
4414  return ((_M_inliningDepth != _S_notInlined) ? _M_pParent : NULL);
4415  }
#define NULL
Definition: vcruntime.h:236
_TaskCollectionBase * _M_pParent
Definition: concrt.h:4442
int _M_inliningDepth
Definition: concrt.h:4445
static const int _S_notInlined
Definition: concrt.h:4482
bool Concurrency::details::_TaskCollectionBase::_WillInterruptForPendingCancel ( )
protected
_TaskCollectionBase& Concurrency::details::_TaskCollectionBase::operator= ( const _TaskCollectionBase )
delete

Friends And Related Function Documentation

friend class ::Concurrency::details::ContextBase
friend

Member Data Documentation

volatile long Concurrency::details::_TaskCollectionBase::_M_completedStolenChores
protected
int Concurrency::details::_TaskCollectionBase::_M_inlineFlags
protected
int Concurrency::details::_TaskCollectionBase::_M_inliningDepth
protected
std::exception_ptr* Concurrency::details::_TaskCollectionBase::_M_pException
protected
void* Concurrency::details::_TaskCollectionBase::_M_pOwningContext
protected
_TaskCollectionBase* Concurrency::details::_TaskCollectionBase::_M_pParent
protected
_CancellationTokenState* Concurrency::details::_TaskCollectionBase::_M_pTokenState
protected
long Concurrency::details::_TaskCollectionBase::_M_unpoppedChores
protected
const size_t Concurrency::details::_TaskCollectionBase::_S_cancelBitsMask = 0x3
staticprotected
const size_t Concurrency::details::_TaskCollectionBase::_S_cancelDeferredShootdownOwner = 0x2
staticprotected
const size_t Concurrency::details::_TaskCollectionBase::_S_cancelException = 0xC
staticprotected
const size_t Concurrency::details::_TaskCollectionBase::_S_cancelNone = 0x0
staticprotected
const size_t Concurrency::details::_TaskCollectionBase::_S_cancelShotdownOwner = 0x3
staticprotected
const size_t Concurrency::details::_TaskCollectionBase::_S_cancelStarted = 0x1
staticprotected
const int Concurrency::details::_TaskCollectionBase::_S_localCancel = 0x00000002
staticprotected
const size_t Concurrency::details::_TaskCollectionBase::_S_nonNull = 0x8
staticprotected
const int Concurrency::details::_TaskCollectionBase::_S_notInlined = -1
staticprotected
const int Concurrency::details::_TaskCollectionBase::_S_reserved = 0x0000000C
staticprotected
const int Concurrency::details::_TaskCollectionBase::_S_structured = 0x00000001
staticprotected

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