mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
wpiutil: EventLoopRunner: Allow getting the loop shared_ptr.
This commit is contained in:
@@ -63,3 +63,8 @@ void EventLoopRunner::ExecSync(LoopFunc func) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
std::shared_ptr<uv::Loop> EventLoopRunner::GetLoop() {
|
||||
if (auto thr = m_owner.GetThread()) return thr->m_loop;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user