ScummVM API documentation
MTropolis::VThread Class Reference

Public Member Functions

 VThread (ICoroutineManager *coroManager)
 
template<typename TClass , typename TData >
TData * pushTask (const char *name, TClass *obj, VThreadState(TClass::*method)(const TData &data))
 
template<typename TData >
TData * pushTask (const char *name, VThreadState(*func)(const TData &data))
 
VThreadState step ()
 
bool hasTasks () const
 
bool popFrame ()
 
VThreadTaskDatapushCoroutineFrame (const CompiledCoroutine *compiledCoro, const CoroutineParamsBase &params, const CoroutineReturnValueRefBase &returnValueRef)
 
template<typename TCoroutine , typename TReturnValue , typename ... TParams>
void pushCoroutineWithReturn (TReturnValue *returnValuePtr, TParams &&...args)
 
template<typename TCoroutine , typename TReturnValue >
void pushCoroutineWithReturn (TReturnValue *returnValuePtr)
 
template<typename TCoroutine , typename... TParams>
void pushCoroutine (TParams &&...args)
 
template<typename TCoroutine >
void pushCoroutine ()
 

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