move shell to separate thread

This commit is contained in:
Martin Michelsen
2024-02-16 22:52:46 -08:00
parent d3d63dd36c
commit 5bfda213c7
18 changed files with 1233 additions and 1249 deletions
+8
View File
@@ -0,0 +1,8 @@
#pragma once
#include <event2/event.h>
#include <functional>
#include <memory>
void forward_to_event_thread(std::shared_ptr<struct event_base> base, std::function<void()>&& fn);