![]() |
DrawCaml
|
#include <action.h>
Public Member Functions | |
Action (SWindow *win, Function f) | |
void | Call () |
Public Attributes | |
Function | mFun |
mutex * | mResultLock |
Object consisting of actions to be performed on the window, stored in window's queue.
Action::Action | ( | SWindow * | win, |
Function | f | ||
) |
The constructor of Action adds it directly to the queue of the given window. (if not null)
void Action::Call | ( | ) |
Performs the action (calls the function f given in the constructor). Called by window's queue.
Function Action::mFun |
void(void) function with all parameters already binded
mutex* Action::mResultLock |
lock to wait for the result of the action