36 _upon_birth = upon_birth;
54 _upon_death = upon_death;
72 _user_data = user_data;
BirthFunc * get_upon_birth() const
Returns the function that is called when the task begins, or NULL if the function is not defined.
void set_user_data(void *user_data)
Replaces the void pointer that is passed to the task function.
void set_upon_birth(BirthFunc *function)
Replaces the function that is called when the task begins.
void set_function(TaskFunc *function)
Replaces the function that is called when the task runs.
void set_upon_death(DeathFunc *function)
Replaces the function that is called when the task ends.
TaskFunc * get_function() const
Returns the function that is called when the task runs.
DeathFunc * get_upon_death() const
Returns the function that is called when the task ends, or NULL if the function is not defined.
void * get_user_data() const
Returns the void pointer that is passed to the task function.