summaryrefslogtreecommitdiff
path: root/doc/using.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/using.rst')
-rw-r--r--doc/using.rst16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/using.rst b/doc/using.rst
index 0956085..d36a34a 100644
--- a/doc/using.rst
+++ b/doc/using.rst
@@ -79,6 +79,22 @@ Hello World::
<https://docs.python.org/dev/library/asyncio.html>`_.
+Threads
+-------
+
+Running an event loop in a thread different than the main thread is currently
+experimental.
+
+An eventlet Event object is not thread-safe, it must only be used in the
+same thread. Use threading.Event to signal events between threads,
+and threading.Queue to pass data between threads.
+
+Use ``threading = eventlet.patcher.original('threading')`` to get the original
+threading instead of ``import threading``.
+
+It is not possible to run two aiogreen event loops in the same thread.
+
+
Debug mode
----------