|
Related Functions |
(Note that these are not member functions.)
|
template<typename Function > |
ThreadFun * | threadFun (Function function, ThreadKind kind) |
template<typename ObjectPtr , typename Method > |
ThreadFun * | threadMemFun (ObjectPtr object, Method method, ThreadKind kind) |
template<typename P1 , typename Function > |
ThreadFun * | threadFun (Function function, const P1 &iP1, ThreadKind kind) |
template<typename P1 , typename ObjectPtr , typename Method > |
ThreadFun * | threadMemFun (ObjectPtr object, Method method, const P1 &iP1, ThreadKind kind) |
template<typename P1 , typename P2 , typename Function > |
ThreadFun * | threadFun (Function function, const P1 &iP1, const P2 &iP2, ThreadKind kind) |
template<typename P1 , typename P2 , typename ObjectPtr , typename Method > |
ThreadFun * | threadMemFun (ObjectPtr object, Method method, const P1 &iP1, const P2 &iP2, ThreadKind kind) |
template<typename P1 , typename P2 , typename P3 , typename Function > |
ThreadFun * | threadFun (Function function, const P1 &iP1, const P2 &iP2, const P3 &iP3, ThreadKind kind) |
template<typename P1 , typename P2 , typename P3 , typename ObjectPtr , typename Method > |
ThreadFun * | threadMemFun (ObjectPtr object, Method method, const P1 &iP1, const P2 &iP2, const P3 &iP3, ThreadKind kind) |
template<typename P1 , typename P2 , typename P3 , typename P4 , typename Function > |
ThreadFun * | threadFun (Function function, const P1 &iP1, const P2 &iP2, const P3 &iP3, const P4 &iP4, ThreadKind kind) |
template<typename P1 , typename P2 , typename P3 , typename P4 , typename ObjectPtr , typename Method > |
ThreadFun * | threadMemFun (ObjectPtr object, Method method, const P1 &iP1, const P2 &iP2, const P3 &iP3, const P4 &iP4, ThreadKind kind) |
template<typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename Function > |
ThreadFun * | threadFun (Function function, const P1 &iP1, const P2 &iP2, const P3 &iP3, const P4 &iP4, const P5 &iP5, ThreadKind kind) |
template<typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename ObjectPtr , typename Method > |
ThreadFun * | threadMemFun (ObjectPtr object, Method method, const P1 &iP1, const P2 &iP2, const P3 &iP3, const P4 &iP4, const P5 &iP5, ThreadKind kind) |
template<typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename Function > |
ThreadFun * | threadFun (Function function, const P1 &iP1, const P2 &iP2, const P3 &iP3, const P4 &iP4, const P5 &iP5, const P6 &iP6, ThreadKind kind) |
template<typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename ObjectPtr , typename Method > |
ThreadFun * | threadMemFun (ObjectPtr object, Method method, const P1 &iP1, const P2 &iP2, const P3 &iP3, const P4 &iP4, const P5 &iP5, const P6 &iP6, ThreadKind kind) |
template<typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename Function > |
ThreadFun * | threadFun (Function function, const P1 &iP1, const P2 &iP2, const P3 &iP3, const P4 &iP4, const P5 &iP5, const P6 &iP6, const P7 &iP7, ThreadKind kind) |
template<typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename ObjectPtr , typename Method > |
ThreadFun * | threadMemFun (ObjectPtr object, Method method, const P1 &iP1, const P2 &iP2, const P3 &iP3, const P4 &iP4, const P5 &iP5, const P6 &iP6, const P7 &iP7, ThreadKind kind) |
template<typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 , typename Function > |
ThreadFun * | threadFun (Function function, const P1 &iP1, const P2 &iP2, const P3 &iP3, const P4 &iP4, const P5 &iP5, const P6 &iP6, const P7 &iP7, const P8 &iP8, ThreadKind kind) |
template<typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 , typename ObjectPtr , typename Method > |
ThreadFun * | threadMemFun (ObjectPtr object, Method method, const P1 &iP1, const P2 &iP2, const P3 &iP3, const P4 &iP4, const P5 &iP5, const P6 &iP6, const P7 &iP7, const P8 &iP8, ThreadKind kind) |
template<typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 , typename P9 , typename Function > |
ThreadFun * | threadFun (Function function, const P1 &iP1, const P2 &iP2, const P3 &iP3, const P4 &iP4, const P5 &iP5, const P6 &iP6, const P7 &iP7, const P8 &iP8, const P9 &iP9, ThreadKind kind) |
template<typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 , typename P9 , typename ObjectPtr , typename Method > |
ThreadFun * | threadMemFun (ObjectPtr object, Method method, const P1 &iP1, const P2 &iP2, const P3 &iP3, const P4 &iP4, const P5 &iP5, const P6 &iP6, const P7 &iP7, const P8 &iP8, const P9 &iP9, ThreadKind kind) |
template<typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 , typename P9 , typename P10 , typename Function > |
ThreadFun * | threadFun (Function function, const P1 &iP1, const P2 &iP2, const P3 &iP3, const P4 &iP4, const P5 &iP5, const P6 &iP6, const P7 &iP7, const P8 &iP8, const P9 &iP9, const P10 &iP10, ThreadKind kind) |
template<typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 , typename P9 , typename P10 , typename ObjectPtr , typename Method > |
ThreadFun * | threadMemFun (ObjectPtr object, Method method, const P1 &iP1, const P2 &iP2, const P3 &iP3, const P4 &iP4, const P5 &iP5, const P6 &iP6, const P7 &iP7, const P8 &iP8, const P9 &iP9, const P10 &iP10, ThreadKind kind) |
template<typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 , typename P9 , typename P10 , typename P11 , typename Function > |
ThreadFun * | threadFun (Function function, const P1 &iP1, const P2 &iP2, const P3 &iP3, const P4 &iP4, const P5 &iP5, const P6 &iP6, const P7 &iP7, const P8 &iP8, const P9 &iP9, const P10 &iP10, const P11 &iP11, ThreadKind kind) |
template<typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 , typename P9 , typename P10 , typename P11 , typename ObjectPtr , typename Method > |
ThreadFun * | threadMemFun (ObjectPtr object, Method method, const P1 &iP1, const P2 &iP2, const P3 &iP3, const P4 &iP4, const P5 &iP5, const P6 &iP6, const P7 &iP7, const P8 &iP8, const P9 &iP9, const P10 &iP10, const P11 &iP11, ThreadKind kind) |
template<typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 , typename P9 , typename P10 , typename P11 , typename P12 , typename Function > |
ThreadFun * | threadFun (Function function, const P1 &iP1, const P2 &iP2, const P3 &iP3, const P4 &iP4, const P5 &iP5, const P6 &iP6, const P7 &iP7, const P8 &iP8, const P9 &iP9, const P10 &iP10, const P11 &iP11, const P12 &iP12, ThreadKind kind) |
template<typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 , typename P9 , typename P10 , typename P11 , typename P12 , typename ObjectPtr , typename Method > |
ThreadFun * | threadMemFun (ObjectPtr object, Method method, const P1 &iP1, const P2 &iP2, const P3 &iP3, const P4 &iP4, const P5 &iP5, const P6 &iP6, const P7 &iP7, const P8 &iP8, const P9 &iP9, const P10 &iP10, const P11 &iP11, const P12 &iP12, ThreadKind kind) |
template<typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 , typename P9 , typename P10 , typename P11 , typename P12 , typename P13 , typename Function > |
ThreadFun * | threadFun (Function function, const P1 &iP1, const P2 &iP2, const P3 &iP3, const P4 &iP4, const P5 &iP5, const P6 &iP6, const P7 &iP7, const P8 &iP8, const P9 &iP9, const P10 &iP10, const P11 &iP11, const P12 &iP12, const P13 &iP13, ThreadKind kind) |
template<typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 , typename P9 , typename P10 , typename P11 , typename P12 , typename P13 , typename ObjectPtr , typename Method > |
ThreadFun * | threadMemFun (ObjectPtr object, Method method, const P1 &iP1, const P2 &iP2, const P3 &iP3, const P4 &iP4, const P5 &iP5, const P6 &iP6, const P7 &iP7, const P8 &iP8, const P9 &iP9, const P10 &iP10, const P11 &iP11, const P12 &iP12, const P13 &iP13, ThreadKind kind) |
template<typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 , typename P9 , typename P10 , typename P11 , typename P12 , typename P13 , typename P14 , typename Function > |
ThreadFun * | threadFun (Function function, const P1 &iP1, const P2 &iP2, const P3 &iP3, const P4 &iP4, const P5 &iP5, const P6 &iP6, const P7 &iP7, const P8 &iP8, const P9 &iP9, const P10 &iP10, const P11 &iP11, const P12 &iP12, const P13 &iP13, const P14 &iP14, ThreadKind kind) |
template<typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 , typename P9 , typename P10 , typename P11 , typename P12 , typename P13 , typename P14 , typename ObjectPtr , typename Method > |
ThreadFun * | threadMemFun (ObjectPtr object, Method method, const P1 &iP1, const P2 &iP2, const P3 &iP3, const P4 &iP4, const P5 &iP5, const P6 &iP6, const P7 &iP7, const P8 &iP8, const P9 &iP9, const P10 &iP10, const P11 &iP11, const P12 &iP12, const P13 &iP13, const P14 &iP14, ThreadKind kind) |
template<typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 , typename P9 , typename P10 , typename P11 , typename P12 , typename P13 , typename P14 , typename P15 , typename Function > |
ThreadFun * | threadFun (Function function, const P1 &iP1, const P2 &iP2, const P3 &iP3, const P4 &iP4, const P5 &iP5, const P6 &iP6, const P7 &iP7, const P8 &iP8, const P9 &iP9, const P10 &iP10, const P11 &iP11, const P12 &iP12, const P13 &iP13, const P14 &iP14, const P15 &iP15, ThreadKind kind) |
template<typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 , typename P7 , typename P8 , typename P9 , typename P10 , typename P11 , typename P12 , typename P13 , typename P14 , typename P15 , typename ObjectPtr , typename Method > |
ThreadFun * | threadMemFun (ObjectPtr object, Method method, const P1 &iP1, const P2 &iP2, const P3 &iP3, const P4 &iP4, const P5 &iP5, const P6 &iP6, const P7 &iP7, const P8 &iP8, const P9 &iP9, const P10 &iP10, const P11 &iP11, const P12 &iP12, const P13 &iP13, const P14 &iP14, const P15 &iP15, ThreadKind kind) |
With these objects/functions, you can run (member) functions in threads instead of calling them directly. you even can specify the arguments to be used. Let's illustrate this with a simple example:
threadFun2 allocates a new thread with the necessary information to call the function, then creates and runs the thread. It returns a pointer to the allocated thread. If you do nothing, the thread runs in detached mode and will kill itself at completion (so you don't have to call delete
on thread
yourself. So you even don't have to catch the return value. However, if you want to run it in joinable, you'll have delete the thread yourself. DO NOT FORGET THIS! Maybe we should do something about this situation?
You can also call member functions of specific objects in the thread, both const as non-const member functions.