chore: fix typo
This commit is contained in:
parent
88c758b47c
commit
1e65028321
|
|
@ -260,7 +260,7 @@ void HttpModule::NetworkThread()
|
||||||
response_queue_.push(response);
|
response_queue_.push(response);
|
||||||
response_mutex_.unlock();
|
response_mutex_.unlock();
|
||||||
|
|
||||||
Application::GetInstance().PreformInMainThread(Closure(this, &HttpModule::DispatchResponseCallback));
|
Application::GetInstance().PerformInMainThread(Closure(this, &HttpModule::DispatchResponseCallback));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -235,7 +235,7 @@ void Application::Render()
|
||||||
renderer.Present();
|
renderer.Present();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Application::PreformInMainThread(Function<void()> func)
|
void Application::PerformInMainThread(Function<void()> func)
|
||||||
{
|
{
|
||||||
std::lock_guard<std::mutex> lock(perform_mutex_);
|
std::lock_guard<std::mutex> lock(perform_mutex_);
|
||||||
functions_to_perform_.push(func);
|
functions_to_perform_.push(func);
|
||||||
|
|
|
||||||
|
|
@ -143,7 +143,7 @@ public:
|
||||||
* @details 提供在其他线程调用 Kiwano 函数的能力
|
* @details 提供在其他线程调用 Kiwano 函数的能力
|
||||||
* @param func 需要执行的函数
|
* @param func 需要执行的函数
|
||||||
*/
|
*/
|
||||||
void PreformInMainThread(Function<void()> func);
|
void PerformInMainThread(Function<void()> func);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \~chinese
|
* \~chinese
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue