aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/event/Loop.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/event/Loop.hxx b/src/event/Loop.hxx
index 029d01245..885e74679 100644
--- a/src/event/Loop.hxx
+++ b/src/event/Loop.hxx
@@ -154,6 +154,11 @@ public:
void AddTimer(TimeoutMonitor &t, unsigned ms);
void CancelTimer(TimeoutMonitor &t);
+ /**
+ * Schedule a function to be called inside the thread.
+ *
+ * This method is thread-safe.
+ */
void AddCall(std::function<void()> &&f);
/**