#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...Definition at line 38 of file thread_pool.cpp.
Function Documentation ◆ s_ConvertTaskResult() static CThreadPool_Task::EStatus s_ConvertTaskResult ( CThreadPool_Task::EStatus status ) inlinestaticCheck 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 ) inlinestaticThrow 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 = 0x0FFFFFFFDefinition 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