[*] This this this
This commit is contained in:
parent
f6b254e436
commit
22103a8ad3
@ -165,7 +165,7 @@ namespace Aurora::Async
|
||||
|
||||
size_t ThreadPool::GetThreadWorkersCount(ThreadGroup_t group)
|
||||
{
|
||||
AU_LOCK_GUARD(rwlock_->AsReadable());
|
||||
AU_LOCK_GUARD(this->rwlock_->AsReadable());
|
||||
return GetGroup(group)->workers.size();
|
||||
}
|
||||
|
||||
@ -601,7 +601,7 @@ namespace Aurora::Async
|
||||
|
||||
bool ThreadPool::Exiting()
|
||||
{
|
||||
return shuttingdown_ || GetThreadState()->exiting;
|
||||
return this->shuttingdown_ || GetThreadState()->exiting;
|
||||
}
|
||||
|
||||
AuSPtr<IWorkItem> ThreadPool::NewWorkItem(const WorkerId_t &worker, const AuSPtr<IWorkItemHandler> &task, bool supportsBlocking)
|
||||
@ -651,7 +651,7 @@ namespace Aurora::Async
|
||||
|
||||
bool ThreadPool::Sync(WorkerId_t workerId, AuUInt32 timeoutMs, bool requireSignal)
|
||||
{
|
||||
AU_LOCK_GUARD(rwlock_->AsReadable());
|
||||
AU_LOCK_GUARD(this->rwlock_->AsReadable());
|
||||
|
||||
auto group = GetGroup(workerId.first);
|
||||
auto currentWorkerId = GetCurrentThread().second;
|
||||
@ -676,7 +676,7 @@ namespace Aurora::Async
|
||||
|
||||
void ThreadPool::Signal(WorkerId_t workerId)
|
||||
{
|
||||
AU_LOCK_GUARD(rwlock_->AsReadable());
|
||||
AU_LOCK_GUARD(this->rwlock_->AsReadable());
|
||||
|
||||
auto group = GetGroup(workerId.first);
|
||||
if (workerId.second == Async::kThreadIdAny)
|
||||
@ -694,7 +694,7 @@ namespace Aurora::Async
|
||||
|
||||
void ThreadPool::SyncAllSafe()
|
||||
{
|
||||
AU_LOCK_GUARD(rwlock_->AsReadable());
|
||||
AU_LOCK_GUARD(this->rwlock_->AsReadable());
|
||||
|
||||
for (const auto &re : this->threads_)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user