diff options
Diffstat (limited to 'ceee/ie/broker/chrome_postman.cc')
-rw-r--r-- | ceee/ie/broker/chrome_postman.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ceee/ie/broker/chrome_postman.cc b/ceee/ie/broker/chrome_postman.cc index 9a9562d..430446a 100644 --- a/ceee/ie/broker/chrome_postman.cc +++ b/ceee/ie/broker/chrome_postman.cc @@ -60,7 +60,7 @@ class ApiExecutionTask : public Task { explicit ApiExecutionTask(BSTR message) : message_(message) {} virtual void Run() { - ProductionApiDispatcher::get()->HandleApiRequest(message_, NULL); + ProductionApiDispatcher::GetInstance()->HandleApiRequest(message_, NULL); } private: CComBSTR message_; @@ -72,8 +72,8 @@ class FireEventTask : public Task { : event_name_(event_name), event_args_(event_args) {} virtual void Run() { - ProductionApiDispatcher::get()->FireEvent(event_name_.c_str(), - event_args_.c_str()); + ProductionApiDispatcher::GetInstance()->FireEvent(event_name_.c_str(), + event_args_.c_str()); } private: std::string event_name_; @@ -318,11 +318,11 @@ ChromePostman::ApiInvocationWorkerThread::ApiInvocationWorkerThread() void ChromePostman::ApiInvocationWorkerThread::Init() { ::CoInitializeEx(0, COINIT_MULTITHREADED); - ProductionApiDispatcher::get()->SetApiInvocationThreadId( + ProductionApiDispatcher::GetInstance()->SetApiInvocationThreadId( ::GetCurrentThreadId()); } void ChromePostman::ApiInvocationWorkerThread::CleanUp() { ::CoUninitialize(); - ProductionApiDispatcher::get()->SetApiInvocationThreadId(0); + ProductionApiDispatcher::GetInstance()->SetApiInvocationThreadId(0); } |