InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
AsyncWorkPacket Class Reference

#include <AsyncWork.h>

Inheritance diagram for AsyncWorkPacket:
CusDtLnkLinkResourceStatePacketLinkResourceStatePacket

Public Types

enum  Priority {
  kLowestPriority = 0, kLowPriority = 0, kNormalPriority = 1, kHighPriority = 2,
  kHighestPriority = 2, kReservedForceCompletionPriority = 3
}
 

Public Member Functions

virtual ~AsyncWorkPacket ()
 

Detailed Description

base class, descendents must use only thread-safe code if processor promises thread-safety, not a boss

Constructor & Destructor Documentation

virtual AsyncWorkPacket::~AsyncWorkPacket ()
inlinevirtual

virtual destructor because the architecture deletes these. A packet may be deleted before it's ever processed (if you call cancel), or may be deleted after processing but before the completion callback (if you call cancel too late), or may be deleted after the completion callback has occured (this is the normal case), so be sure that your destructor properly cleans up everything in any of these three cases.