VLC 4.0.0-dev
|
A Runnable encapsulates a task to be run from an executor thread. More...
#include <vlc_executor.h>
Data Fields | |
void(* | run )(void *userdata) |
This function is to be executed by a vlc_executor_t. | |
void * | userdata |
Userdata passed back to run(). | |
struct vlc_list | node |
A Runnable encapsulates a task to be run from an executor thread.
struct vlc_list vlc_runnable::node |
Referenced by QueuePush(), QueueTake(), and vlc_executor_Cancel().
void(* vlc_runnable::run) (void *userdata) |
This function is to be executed by a vlc_executor_t.
It must implement the actions (arbitrarily long) to execute from an executor thread, synchronously. As soon as run() returns, the execution of this runnable is complete.
After the runnable is submitted to an executor via vlc_executor_Submit(), the run() function is executed at most once (zero if the execution is canceled before it was started).
It must not be NULL.
userdata | the userdata provided to vlc_executor_Submit() |
Referenced by TaskNew(), TaskNew(), ThreadRun(), and ThumbnailerRun().
void* vlc_runnable::userdata |
Userdata passed back to run().
Referenced by TaskNew(), TaskNew(), and ThreadRun().