gatb.core-API-0.0.0
ThreadFactoryLinux Class Reference

Factory that creates IThread instances. More...

#include <ThreadLinux.hpp>

Inheritance diagram for ThreadFactoryLinux:
Inheritance graph

Public Member Functions

IThreadnewThread (void *(*mainloop)(void *), void *data)
 
ISynchronizernewSynchronizer (void)
 
IThread::Id getThreadSelf ()
 
u_int64_t getProcess ()
 
- Public Member Functions inherited from IThreadFactory
virtual ~IThreadFactory ()
 

Detailed Description

Factory that creates IThread instances.

Thread creation needs merely the main loop function that will be called.

Member Function Documentation

u_int64_t getProcess ( )
virtual

Return the id of the current process.

Implements IThreadFactory.

IThread::Id getThreadSelf ( )
virtual

Return the id of the calling thread.

Implements IThreadFactory.

ISynchronizer* newSynchronizer ( void  )
virtual

Creates a new synchronization object.

Returns
the created ISynchronizer instance

Implements IThreadFactory.

IThread* newThread ( void *(*)(void *)  mainloop,
void *  data 
)
virtual

Creates a new thread.

Parameters
[in]mainloop: the function the thread shall execute
[in]data: data provided to the mainloop when launched
Returns
the created thread.

Implements IThreadFactory.


The documentation for this class was generated from the following file: