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

This commit is contained in:
Max Kellermann 2013-12-31 15:31:59 +01:00
parent 809b0eb1f5
commit af3f483924

View File

@ -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);
/**