[*] Updated GetRPCProcessor to use a singleton from AuAsync
This commit is contained in:
parent
bb3a872b07
commit
a37a7f1023
@ -9,13 +9,9 @@
|
||||
#include "AuRPC.hpp"
|
||||
#include "AuRPCClientChannel.hpp"
|
||||
|
||||
static thread_local AuSPtr<AuIO::IIOProcessor> tlsIOProcessor;
|
||||
|
||||
AuSPtr<AuIO::IIOProcessor> GetRPCProcessor()
|
||||
{
|
||||
return tlsIOProcessor ?
|
||||
tlsIOProcessor :
|
||||
tlsIOProcessor = AuIO::NewIOProcessorOnThread(false, AuAsync::GetCurrentWorkerPId());
|
||||
return AuAsync::IThreadPool::GetSelfIOProcessor();
|
||||
}
|
||||
|
||||
bool AuRPC::StartClient(AuAsync::WorkerPId_t worker)
|
||||
|
Loading…
Reference in New Issue
Block a user