gatb.core-API-0.0.0
|
Factory that creates IThread instances. More...
#include <ThreadMacos.hpp>
Public Member Functions | |
IThread * | newThread (void *(*mainloop)(void *), void *data) |
ISynchronizer * | newSynchronizer (void) |
IThread::Id | getThreadSelf () |
u_int64_t | getProcess () |
Public Member Functions inherited from IThreadFactory | |
virtual | ~IThreadFactory () |
Factory that creates IThread instances.
Thread creation needs merely the main loop function that will be called.
|
virtual |
Return the id of the current process.
Implements IThreadFactory.
|
virtual |
Return the id of the calling thread.
Implements IThreadFactory.
|
virtual |
Creates a new synchronization object.
Implements IThreadFactory.
|
virtual |
Creates a new thread.
[in] | mainloop | : the function the thread shall execute |
[in] | data | : data provided to the mainloop when launched |
Implements IThreadFactory.