summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Bug_2074_Regression/test.cpp
blob: a48dab43f20d26579f07de2136cc396fb75e526d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// $Id$

#include "tao/corba.h"
#include "ORB_Task.h"

int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
    CORBA::ORB_var orb = CORBA::ORB_init (argc, argv);

    ORB_Task worker (orb.in ());
    worker.activate (THR_NEW_LWP | THR_JOINABLE,
                      10);

    ACE_Time_Value tv (20, 0);
    orb->run(tv);

    orb->destroy ();

    worker.thr_mgr ()->wait ();

    return 0;
}