Passenger::Thread Class Reference

#include <System.h>

List of all members.

Detailed Description

Thread class with system call interruption support.

Public Member Functions

void interrupt ()
 Interrupt the thread.
void interruptAndJoin ()
 Keep interrupting the thread until it's done, then join it.

Member Function Documentation

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.


The documentation for this class was generated from the following file:

Generated on Tue Jun 24 14:03:45 2008 for Passenger by  doxygen 1.5.5