Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
IQueuedWorkInternalData Class Referenceabstract

#include <IQueuedWork.h>

+ Inheritance diagram for IQueuedWorkInternalData:
+ Collaboration diagram for IQueuedWorkInternalData:

Public Member Functions

virtual bool Retract ()=0
 
virtual ~IQueuedWorkInternalData ()
 
- Public Member Functions inherited from FThreadSafeRefCountedObject
 FThreadSafeRefCountedObject ()
 
virtual ~FThreadSafeRefCountedObject ()
 
 FThreadSafeRefCountedObject (const FThreadSafeRefCountedObject &Rhs)=delete
 
FThreadSafeRefCountedObjectoperator= (const FThreadSafeRefCountedObject &Rhs)=delete
 
uint32 AddRef () const
 
uint32 Release () const
 
uint32 GetRefCount () const
 

Detailed Description

Interface for internal data of queued work objects.

This interface can be used to track some data between the individual function invokations of the FQueuedThreadPool Usually it is used to store some internal state to support cancellation without having to look it up from a map.

Definition at line 34 of file IQueuedWork.h.

Constructor & Destructor Documentation

◆ ~IQueuedWorkInternalData()

virtual IQueuedWorkInternalData::~IQueuedWorkInternalData ( )
inlinevirtual

Virtual destructor so that child implementations are guaranteed a chance to clean up any resources they allocated.

Definition at line 49 of file IQueuedWork.h.

Member Function Documentation

◆ Retract()

virtual bool IQueuedWorkInternalData::Retract ( )
pure virtual

called during retraction, when a task is pulled from being worked on. the return value specifies if the cancellation succeded

Implemented in FQueuedLowLevelThreadPool::FQueuedWorkInternalData.


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