event/Loop: document that AddCall() is thread-safe
This commit is contained in:
parent
809b0eb1f5
commit
af3f483924
@ -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);
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user