NCBI C++ ToolKit
Classes | Public Types | Public Member Functions | Protected Types | Protected Attributes | Private Member Functions | List of all members
CBlockingQueue_ForServer Class Reference

Search Toolkit Book for CBlockingQueue_ForServer

#include <connect/impl/thread_pool_for_server.hpp>

+ Collaboration diagram for CBlockingQueue_ForServer:


class  CCompletingHandle
 It may be desirable to store handles obtained from GetHandle() in instances of CCompletingHandle to ensure that they are marked as complete when all is said and done, even in the face of exceptions. More...
class  CQueueItem

Public Types

typedef CRef< CQueueItemTItemHandle
typedef CRef< CStdRequestTRequest

Public Member Functions

 CBlockingQueue_ForServer (void)
 Constructor. More...
TItemHandle Put (const TRequest &request)
 Put a request into the queue. More...
TItemHandle GetHandle (void)
 Get the first available request from the queue, and return a handle to it. More...

Protected Types

typedef deque< TItemHandleTRealQueue
 The type of the queue. More...

Protected Attributes

TRealQueue m_Queue
 The queue. More...
CConditionVariable m_GetCond
CMutex m_Mutex
 Guards access to queue. More...

Private Member Functions

 CBlockingQueue_ForServer (const CBlockingQueue_ForServer &)
 forbidden More...
CBlockingQueue_ForServeroperator= (const CBlockingQueue_ForServer &)

Detailed Description

Definition at line 67 of file thread_pool_for_server.hpp.

The documentation for this class was generated from the following files:
Modified on Sat May 25 14:22:37 2024 by rev. 669887