From af3f483924b0b2b936f3b9e81e6bb4f215404c7e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 31 Dec 2013 15:31:59 +0100 Subject: event/Loop: document that AddCall() is thread-safe --- src/event/Loop.hxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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 &&f); /** -- cgit v1.2.3