Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[tao-users] simple ACE thread example?

60 views
Skip to first unread message

Patrick Sprowls

unread,
Sep 30, 2002, 4:22:54 PM9/30/02
to
Hi,

I've been looking for a simple ACE threading example and keep coming up
short. I'm trying to create a very simple thread that will take an TAO
ORB as a parameter, execute orb->run() when the thread is started, and
orb->shutdown() when the thread is stopped. Nothing more...nothing
less.

I've been searching online and in the C++ Network Programming book, but
I keep getting bogged down in all the networking lingo...

Thanks,
Pat Sprowls

Douglas C. Schmidt

unread,
Oct 1, 2002, 12:11:58 AM10/1/02
to
Hi Pat,

If you're interested in ACE there are lots of tutorials in

$ACE_ROOT/docs/tutorials/online-tutorials.html

that should be able to help you out. If you're interested in TAO, you
should check out the example in

$TAO_ROOT/tests/MT_Server/server.cpp

and look for the call to worker.activate() and the implementation of
the Worker::svc() method. If you want to understand how the
activate() and svc() methods work please see the ACE_Task material in
C++NPv2 <www.cs.wustl.edu/~schmidt/ACE/book2/>.

Take care,

Doug
--
Dr. Douglas C. Schmidt, Associate Professor TEL: (949) 824-1901
Dept of Electrical & Computer Engineering FAX: (949) 824-2321
616E Engineering Tower WEB: www.ece.uci.edu/~schmidt/
University of California, Irvine, 92697-2625 NET: sch...@uci.edu

0 new messages