Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

atoms::ThreadPool::BlockingMon Class Reference

#include <thread_pool.hh>

Inheritance diagram for atoms::ThreadPool::BlockingMon:

Inheritance graph
[legend]
Collaboration diagram for atoms::ThreadPool::BlockingMon:

Collaboration graph
[legend]
List of all members.

Detailed Description

Wrapper around potentially-blocking operations.

This manipulates the semaphore and designates a new task injector if necessary. It equivalent to Jeffy Darcy's AboutToBlock and BecomeBusy.

These are safe to call from outside thread pools; they are then no-ops. Thus, any code that blocks can safely call them.

Definition at line 88 of file thread_pool.hh.

Public Member Functions

 BlockingMon (bool mightBlock)
 ~BlockingMon ()

Private Attributes

ThreadPoolpool


Constructor & Destructor Documentation

atoms::ThreadPool::BlockingMon::BlockingMon bool  mightBlock  )  [inline]
 

Definition at line 90 of file thread_pool.hh.

References NULL, and pool.

atoms::ThreadPool::BlockingMon::~BlockingMon  )  [inline]
 

Definition at line 96 of file thread_pool.hh.

References atoms::ThreadPool::becomeBusy(), NULL, and pool.

Here is the call graph for this function:


Member Data Documentation

ThreadPool* atoms::ThreadPool::BlockingMon::pool [private]
 

Definition at line 100 of file thread_pool.hh.

Referenced by BlockingMon(), and ~BlockingMon().


The documentation for this class was generated from the following file:
Generated on Wed Jun 15 01:21:11 2005 for atoms++ by doxygen 1.3.5