#include <maciORBTask.h>
Collaboration diagram for maci::ORBTask:

Public Member Functions | |
| ORBTask (CORBA::ORB_ptr orb, LoggingProxy *logger=0, unsigned int timeToRun=0) | |
Private Member Functions | |
| virtual int | svc (void) |
| Thread entry point (thread worker). | |
Private Attributes | |
| CORBA::ORB_var | m_orb |
| CORBA ORB whose request to handle. | |
| LoggingProxy * | m_logger |
| Logger. | |
| unsigned int | m_timeToRun |
| Time to run CORBA ORB in seconds, 0 means until shutdown/destroy. | |
ORBTask worker (orb.in(), m_logger);
// activate worker
if (worker.activate(THR_NEW_LWP | THR_JOINABLE, nthreads) == 0)
// wait until all workers do its work, i.e. until ORB is destroyed
worker.thr_mgr ()->wait ();
else
// report error here
|
||||||||||||||||
|
Constructor of the ORBTask class.
|
|
|
Thread entry point (thread worker).
|
|
|
Logger.
|
|
|
CORBA ORB whose request to handle.
|
|
|
Time to run CORBA ORB in seconds, 0 means until shutdown/destroy.
|
1.3.8