A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/classCThreadPool__Guard.html below:

NCBI C++ ToolKit: CThreadPool_Guard Class Reference

Search Toolkit Book for CThreadPool_Guard

Guardian for protecting pool by locking its main mutex. More...

Inheritance diagram for CThreadPool_Guard:

Collaboration diagram for CThreadPool_Guard:

Additional Inherited Members  Private Types inherited from CGuard< Resource, Lock, Unlock, ReportExceptions > typedef Resource  resource_type   typedef resource_typeresource_ptr   typedef Lock  lock_type   typedef Unlock  unlock_type   typedef CGuard< Resource, Lock, Unlock, ReportExceptions >  TThisType    Private Types inherited from CGuard_Base enum   EReportExceptions { eReport , eSilent }   Exception reporting options. More...
   Private Member Functions inherited from CGuard< Resource, Lock, Unlock, ReportExceptions >   CGuard (EEmptyGuard)     CGuard (resource_type &resource)   This constructor locks the resource passed. More...
    CGuard (EEmptyGuard, const lock_type &lock, const unlock_type &unlock=unlock_type())     CGuard (resource_type &resource, const lock_type &lock, const unlock_type &unlock=unlock_type())   This constructor locks the resource passed. More...
    ~CGuard ()   Destructor releases the resource. More...
  void  Release ()   Manually force the resource to be released. More...
  void  Guard (resource_type &resource)   Manually force the guard to protect some other resource. More...
  resource_ptrGetResource (void)   lock_typeGetLock (void)   unlock_typeGetUnlock (void)    Static Private Member Functions inherited from CGuard_Base static void  ReportException (std::exception &ex)   Detailed Description

Guardian for protecting pool by locking its main mutex.

Definition at line 559 of file thread_pool.cpp.

Constructor & Destructor Documentation ◆ CThreadPool_Guard()

Constructor.

Parameters
pool Pool to protect is_active If the mutex should be locked in constructor or not

Definition at line 664 of file thread_pool.cpp.

References _ASSERT, and Guard().

Member Function Documentation ◆ Guard() void CThreadPool_Guard::Guard ( void  )

Turn this guardian on.

Definition at line 675 of file thread_pool.cpp.

References CThreadPool_Impl::GetMainPoolMutex(), CGuard< Resource, Lock, Unlock, ReportExceptions >::Guard(), and m_Pool.

Referenced by CThreadPool_Impl::AddTask(), CThreadPool_Guard(), CThreadPool_ServiceThread::Main(), CThreadPool_Controller::SetMaxThreads(), CThreadPool_Controller::SetMinThreads(), and CThreadPool_Impl::x_WaitForPredicate().

◆ Release() void CThreadPool_Guard::Release ( void  ) Member Data Documentation ◆ m_Pool

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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4