13.07.2015 Views

Multithreading - Poco

Multithreading - Poco

Multithreading - Poco

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Working With Threads> To start a thread, call its start() member function and pass it areference to a Runnable.> To join a thread, call its join() member function. It will wait untilthe thread terminates, then return.> A thread's priority can be changed with setPriority() and queriedwith getPriority().> Every thread gets a unique numerical ID which can be obtainedwith the id() member function.> A thread's name (optionally specified at construction) can beobtained with name().

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!