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
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