Information
We are currently investigating an issue with the editor of some pages. Please save your work and avoid to create new pages until this banner is gone.
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
//Client code...
#include "acsThreadManager.h"
#include "acsThreadTest.h"
int main(int argc, char *argv[]) {
LoggingProxy logger_m(0, 0, 31);
LoggingProxy::init(&logger_m);
ACS_CHECK_LOGGER;
//Obtain Thread Manager
ACS::ThreadManager tm(getNamedLogger("ThrMgrLogger"));
//Create thread
TestACSThread* test = tm.create<TestACSThread>("TestThread");
//Resume execution
test.resume();
//Wait reasonable time...
sleep(10);
//Release Thread Resources
tm.destroy(test);
return 0;
} |
...