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/thread__pool_8cpp.html below:

NCBI C++ ToolKit: src/util/thread_pool.cpp File Reference

#include <ncbi_pch.hpp>
#include <util/thread_pool.hpp>
#include <util/thread_pool_ctrl.hpp>
#include <util/sync_queue.hpp>
#include <util/error_codes.hpp>

Include dependency graph for thread_pool.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes struct   SThreadPool_TaskCompare   Functor to compare tasks by priority. More...
  class   CThreadPool_Impl   Real implementation of all ThreadPool functions. More...
  struct   CThreadPool_Impl::SExclusiveTaskInfo   Type for storing information about exclusive task launching. More...
  class   CThreadPool_ThreadImpl   Real implementation of all CThreadPool_Thread functions. More...
  class   CThreadPool_ServiceThread   Thread used in pool for different internal needs: execution of exclusive tasks and passing events to controller. More...
  class   CThreadPool_Guard   Guardian for protecting pool by locking its main mutex. More...
  class   CThreadPool_EmptyTask   Special task which does nothing It's used in FlushThreads to force pool to wait while all old threads finish their operation to start new ones. More...
  Macros #define  NCBI_USE_ERRCODE_X   Util_Thread   Functions static CThreadPool_Task::EStatus  s_ConvertTaskResult (CThreadPool_Task::EStatus status)   Check if status returned from CThreadPool_Task::Execute() is allowed and change it to eCompleted value if it is invalid. More...
  static void  ThrowAddProhibited (void)   Throw an exception with standard message when AddTask() is called but ThreadPool is aborted or do not allow new tasks. More...
  Variables const CAtomicCounter::TValue  kNeedCallController_Shift = 0x0FFFFFFF   Macro Definition Documentation ◆ NCBI_USE_ERRCODE_X #define NCBI_USE_ERRCODE_X   Util_Thread

Definition at line 38 of file thread_pool.cpp.

Function Documentation ◆ s_ConvertTaskResult() static CThreadPool_Task::EStatus s_ConvertTaskResult ( CThreadPool_Task::EStatus  status ) inlinestatic

Check if status returned from CThreadPool_Task::Execute() is allowed and change it to eCompleted value if it is invalid.

Definition at line 604 of file thread_pool.cpp.

References _ASSERT, Critical(), CThreadPool_Task::eCanceled, CThreadPool_Task::eCompleted, CThreadPool_Task::eFailed, and ERR_POST_X.

Referenced by CThreadPool_ThreadImpl::Main(), and CThreadPool_ServiceThread::Main().

◆ ThrowAddProhibited() static void ThrowAddProhibited ( void  ) inlinestatic

Throw an exception with standard message when AddTask() is called but ThreadPool is aborted or do not allow new tasks.

Definition at line 1662 of file thread_pool.cpp.

References NCBI_THROW.

Referenced by CThreadPool_Impl::AddTask().

Variable Documentation ◆ kNeedCallController_Shift const CAtomicCounter::TValue kNeedCallController_Shift = 0x0FFFFFFF

Definition at line 626 of file thread_pool.cpp.

Referenced by CThreadPool_ServiceThread::CThreadPool_ServiceThread(), CThreadPool_ServiceThread::NeedCallController(), and CThreadPool_ServiceThread::x_Idle().


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