factor out shell command execution

This commit is contained in:
Martin Michelsen
2025-01-06 00:11:53 -08:00
parent d51f7a0fe7
commit 0be056adce
3 changed files with 18 additions and 11 deletions
+1 -1
View File
@@ -383,7 +383,7 @@ struct ServerState : public std::enable_shared_from_this<ServerState> {
std::vector<PortConfiguration> parse_port_configuration(const phosg::JSON& json) const;
template <typename T>
inline void call_on_event_thread(std::function<T()>&& fn) {
inline T call_on_event_thread(std::function<T()>&& fn) {
return ::call_on_event_thread<T>(this->base, std::move(fn));
}
inline void forward_to_event_thread(std::function<void()>&& fn) {