[core] factor out RunLoop::wake()
This commit is contained in:
@@ -129,11 +129,8 @@ LOOP_HANDLE RunLoop::getLoopHandle() {
|
||||
return Get()->impl->loop;
|
||||
}
|
||||
|
||||
void RunLoop::push(std::shared_ptr<WorkTask> task) {
|
||||
withMutex([&] {
|
||||
queue.push(std::move(task));
|
||||
impl->async->send();
|
||||
});
|
||||
void RunLoop::wake() {
|
||||
impl->async->send();
|
||||
}
|
||||
|
||||
void RunLoop::run() {
|
||||
|
||||
Reference in New Issue
Block a user