Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 108055 Details for
Bug 163654
dev-libs/ace-5.5.3-r1 doesn't install Select_Reactor.h
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
A simple example using an ACE_TP_Reactor
ace_reactor.cpp (text/plain), 1008 bytes, created by
Martin Kolleck
on 2007-01-24 21:12:45 UTC
(
hide
)
Description:
A simple example using an ACE_TP_Reactor
Filename:
MIME Type:
Creator:
Martin Kolleck
Created:
2007-01-24 21:12:45 UTC
Size:
1008 bytes
patch
obsolete
>/** > * @file > * > * ACE reactor demonstration. Compile with > * > * g++ -o ace_reactor ace_reactor.cpp -lACE > * > * @author Martin Kolleck > * @date 2007-01-24 > */ > >#include <ace/Reactor.h> >#include <ace/Thread_Manager.h> >#include <ace/TP_Reactor.h> > >/** > * This is the function run by all threads in the thread pool. > * > * @param arg is expected to be of type (ACE_Reactor *) > */ >ACE_THR_FUNC_RETURN threadFunc(void *arg) >{ > ACE_Reactor *reactor = (ACE_Reactor *) arg; > reactor->run_reactor_event_loop(); > > return 0; >} > >/** > * The main function sets up the TP reactor and then waits for the termination > * of the reactor. > */ >int main(void) >{ > // create a reactor from a TP reactor > ACE_TP_Reactor tpReactor; > ACE_Reactor reactor(&tpReactor); > > // spawn some threads which run the reactor event loop(s) > ACE_Thread_Manager::instance()->spawn_n(3, threadFunc, &reactor); > > // let the thread manager wait for all threads > ACE_Thread_Manager::instance()->wait(); > > return 0; >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 163654
: 108055