HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NET_ThreadedIO Class Reference

#include <NET_ThreadedIO.h>

Classes

class  Task
 Base Class to perform IO thread tasks. More...
 

Public Member Functions

 NET_ThreadedIO (const ASIO_IOContext::executor_type &exc, exint max_cost=0)
 
void postTask (UT_UniquePtr< Task > task)
 
void postTask (UT_Function< void()> func, exint cost=0)
 

Detailed Description

NOTE: This is ONLY a proof of concept as a replacement for UT_ThreadedIO If accepted this would likely move to $UT

Definition at line 27 of file NET_ThreadedIO.h.

Constructor & Destructor Documentation

NET_ThreadedIO::NET_ThreadedIO ( const ASIO_IOContext::executor_type &  exc,
exint  max_cost = 0 
)
inline

Definition at line 67 of file NET_ThreadedIO.h.

Member Function Documentation

void NET_ThreadedIO::postTask ( UT_UniquePtr< Task task)
inline

Adds the task to the IO queue. This will block until there is enough free space on the queue.

Definition at line 76 of file NET_ThreadedIO.h.

void NET_ThreadedIO::postTask ( UT_Function< void()>  func,
exint  cost = 0 
)
inline

Adds the task to the IO queue. This will block until there is enough free space on the queue.

Definition at line 114 of file NET_ThreadedIO.h.


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