Commit af3f4839 authored by Max Kellermann's avatar Max Kellermann

event/Loop: document that AddCall() is thread-safe

parent 809b0eb1
......@@ -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);
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment