You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
This reverts commit f916e64927
.
This commit is contained in:
@ -74,19 +74,19 @@ void WeightedThreadPool::init()
|
||||
|
||||
void WeightedThreadPool::setQueueSize(size_t queueSize)
|
||||
{
|
||||
std::unique_lock lock1(fMutex);
|
||||
boost::mutex::scoped_lock lock1(fMutex);
|
||||
fQueueSize = queueSize;
|
||||
}
|
||||
|
||||
void WeightedThreadPool::setMaxThreads(size_t maxThreads)
|
||||
{
|
||||
std::unique_lock lock1(fMutex);
|
||||
boost::mutex::scoped_lock lock1(fMutex);
|
||||
fMaxThreads = maxThreads;
|
||||
}
|
||||
|
||||
void WeightedThreadPool::setMaxThreadWeight(size_t maxWeight)
|
||||
{
|
||||
std::unique_lock lock1(fMutex);
|
||||
boost::mutex::scoped_lock lock1(fMutex);
|
||||
fMaxThreadWeight = maxWeight;
|
||||
}
|
||||
|
||||
@ -97,7 +97,7 @@ void WeightedThreadPool::setThreadCreatedListener(const Functor_T& f)
|
||||
|
||||
void WeightedThreadPool::stop()
|
||||
{
|
||||
std::unique_lock lock1(fMutex);
|
||||
boost::mutex::scoped_lock lock1(fMutex);
|
||||
fStop = true;
|
||||
lock1.unlock();
|
||||
|
||||
@ -107,7 +107,7 @@ void WeightedThreadPool::stop()
|
||||
|
||||
void WeightedThreadPool::wait()
|
||||
{
|
||||
std::unique_lock lock1(fMutex);
|
||||
boost::mutex::scoped_lock lock1(fMutex);
|
||||
|
||||
while (fWaitingFunctorsSize > 0)
|
||||
{
|
||||
@ -119,7 +119,7 @@ void WeightedThreadPool::wait()
|
||||
|
||||
void WeightedThreadPool::removeJobs(uint32_t id)
|
||||
{
|
||||
std::unique_lock lock1(fMutex);
|
||||
boost::mutex::scoped_lock lock1(fMutex);
|
||||
Container_T::iterator it;
|
||||
|
||||
it = fNextFunctor;
|
||||
@ -146,7 +146,7 @@ void WeightedThreadPool::removeJobs(uint32_t id)
|
||||
|
||||
void WeightedThreadPool::invoke(const Functor_T& threadfunc, uint32_t functor_weight, uint32_t id)
|
||||
{
|
||||
std::unique_lock lock1(fMutex);
|
||||
boost::mutex::scoped_lock lock1(fMutex);
|
||||
|
||||
for (;;)
|
||||
{
|
||||
@ -216,7 +216,7 @@ void WeightedThreadPool::beginThread() throw()
|
||||
try
|
||||
{
|
||||
// fThreadCreated();
|
||||
std::unique_lock lock1(fMutex);
|
||||
boost::mutex::scoped_lock lock1(fMutex);
|
||||
|
||||
for (;;)
|
||||
{
|
||||
|
Reference in New Issue
Block a user