diff options
author | Max Kellermann <max@duempel.org> | 2013-12-31 15:31:59 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-12-31 15:31:59 +0100 |
commit | af3f483924b0b2b936f3b9e81e6bb4f215404c7e (patch) | |
tree | 4b66895f8c914a14070cb055c98cc6717abe0c79 | |
parent | 809b0eb1f52289894554def6bf078a87c9d64cf3 (diff) | |
download | mpd-af3f483924b0b2b936f3b9e81e6bb4f215404c7e.tar.gz mpd-af3f483924b0b2b936f3b9e81e6bb4f215404c7e.tar.xz mpd-af3f483924b0b2b936f3b9e81e6bb4f215404c7e.zip |
event/Loop: document that AddCall() is thread-safe
-rw-r--r-- | src/event/Loop.hxx | 5 |
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); /** |