ST_engine  0.3-ALPHA
Public Member Functions | Public Attributes | List of all members
ST::task Class Reference

An object representing a task to be run by the task manager. More...

#include <task.hpp>

Public Member Functions

 task (void(*function)(void *), void *arg, semaphore *dependency)
 
void * operator new (std::size_t)
 
void operator delete (void *)
 

Public Attributes

void(* task_func )(void *)
 
void * data {}
 
semaphorelock = nullptr
 
semaphoredependency {}
 

Detailed Description

An object representing a task to be run by the task manager.

Contains a function pointer. Data to pass to that function pointer. And some locking mechanisms.

Definition at line 24 of file task.hpp.

Constructor & Destructor Documentation

◆ task()

ST::task::task ( void(*)(void *)  function,
void *  arg,
semaphore dependency 
)
inline
Parameters
functionA function representing a work task
argThe arguments to above function
dependencyA lock acting as a dependency to the task or nullptr if there is no such dependency

Definition at line 43 of file task.hpp.


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