Synchronized execution
[Using integer set variables and constraints]
Functions | |
void | Gecode::wait (Home home, SetVar x, void(*c)(Space &home)) |
Execute c when x becomes assigned. | |
void | Gecode::wait (Home home, const SetVarArgs &x, void(*c)(Space &home)) |
Execute c when all variables in x become assigned. |
Detailed Description
Synchronized execution executes a function or a static member function when a certain event happends.
Function Documentation
void Gecode::wait | ( | Home | home, | |
SetVar | x, | |||
void(*)(Space &home) | c | |||
) |
Execute c when x becomes assigned.
void Gecode::wait | ( | Home | home, | |
const SetVarArgs & | x, | |||
void(*)(Space &home) | c | |||
) |
Execute c when all variables in x become assigned.