#include <System.h>
Public Member Functions | |
| void | interrupt () |
| Interrupt the thread. | |
| void | interruptAndJoin () |
| Keep interrupting the thread until it's done, then join it. | |
| void Passenger::Thread::interrupt | ( | ) | [inline] |
Interrupt the thread.
This method behaves just like boost::thread::interrupt(), but will also respect the interruption points defined in Passenger::InterruptableCalls.
Note that an interruption request may get lost, depending on the current execution point of the thread. Thus, one should call this method in a loop, until a certain goal condition has been fulfilled. interruptAndJoin() is a convenience method that implements this pattern.
| void Passenger::Thread::interruptAndJoin | ( | ) | [inline] |
Keep interrupting the thread until it's done, then join it.
| boost::thread_interrupted |
1.5.5