Skip to content

Commit

Permalink
the thread the event loop is running in
Browse files Browse the repository at this point in the history
  • Loading branch information
igorklopov committed Jul 11, 2015
1 parent 159a2d2 commit 1d7f936
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/threads.rst
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ The trigger is ``uv_queue_work``:

The thread function will be launched in a separate thread, passed the
``uv_work_t`` structure and once the function returns, the *after* function
will be called in the main thread, again with the same structure.
will be called on the thread the event loop is running in. It will be passed
the same structure.

For writing wrappers to blocking libraries, a common :ref:`pattern <baton>`
is to use a baton to exchange data.
Expand Down

0 comments on commit 1d7f936

Please sign in to comment.