HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_ThreadedIOTask Class Referenceabstract

#include <UT_ThreadedIO.h>

Public Member Functions

 UT_ThreadedIOTask ()
 
virtual ~UT_ThreadedIOTask ()
 
virtual void doWrite ()=0
 
virtual exint memoryEstimate () const =0
 

Detailed Description

IO tasks should be subclassed from this. Your destructor will be called on the io thread!

Definition at line 71 of file UT_ThreadedIO.h.

Constructor & Destructor Documentation

UT_ThreadedIOTask::UT_ThreadedIOTask ( )
inline

Definition at line 74 of file UT_ThreadedIO.h.

virtual UT_ThreadedIOTask::~UT_ThreadedIOTask ( )
inlinevirtual

Definition at line 75 of file UT_ThreadedIO.h.

Member Function Documentation

virtual void UT_ThreadedIOTask::doWrite ( )
pure virtual

This is invoked when it is your turn to write. when you exit from this, your task will be destructed.

virtual exint UT_ThreadedIOTask::memoryEstimate ( ) const
pure virtual

A rough estimate of the number of bytes of RAM are lost by waiting for this task to finish. This avoids us spooling up too much and swapping.


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