event/*Monitor: document as not being thread-safe

This commit is contained in:
Max Kellermann 2013-12-31 15:13:22 +01:00
parent af3f483924
commit e73d0df2b6
4 changed files with 15 additions and 0 deletions

View File

@ -38,6 +38,9 @@ class EventLoop;
/**
* Defer execution of an event into an #EventLoop.
*
* This class is thread-safe, however the constructor must be called
* from the thread that runs the #EventLoop
*/
class DeferredMonitor
#ifdef USE_INTERNAL_EVENTLOOP

View File

@ -32,6 +32,10 @@ class EventLoop;
* An event that runs when the EventLoop has become idle, before
* waiting for more events. This class is not thread-safe; all
* methods must be run from EventLoop's thread.
*
* This class is not thread-safe, all methods must be called from the
* thread that runs the #EventLoop, except where explicitly documented
* as thread-safe.
*/
class IdleMonitor {
#ifdef USE_INTERNAL_EVENTLOOP

View File

@ -50,6 +50,10 @@ class EventLoop;
* you're interested in, or Cancel() to cancel your subscription. The
* #EventLoop will invoke virtual method OnSocketReady() as soon as
* any of the subscribed events are ready.
*
* This class is not thread-safe, all methods must be called from the
* thread that runs the #EventLoop, except where explicitly documented
* as thread-safe.
*/
class SocketMonitor {
#ifdef USE_GLIB_EVENTLOOP

View File

@ -31,6 +31,10 @@ class EventLoop;
/**
* This class monitors a timeout. Use Schedule() to begin the timeout
* or Cancel() to cancel it.
*
* This class is not thread-safe, all methods must be called from the
* thread that runs the #EventLoop, except where explicitly documented
* as thread-safe.
*/
class TimeoutMonitor {
#ifdef USE_INTERNAL_EVENTLOOP