doc: clarify uv_default_loop
Indicate that it can (and should) also be closed, currently it's not "special" in any way. PR-URL: https://github.com/libuv/libuv/pull/147 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
parent
ea5f1f98e0
commit
737cd1fb4f
@ -80,6 +80,12 @@ API
|
||||
Returns the initialized default loop. It may return NULL in case of
|
||||
allocation failure.
|
||||
|
||||
This function is just a convenient way for having a global loop throughout
|
||||
an application, the default loop is in no way different than the ones
|
||||
initialized with :c:func:`uv_loop_init`. As such, the default loop can (and
|
||||
should) be closed with :c:func:`uv_loop_close` so the resources associated
|
||||
with it are freed.
|
||||
|
||||
.. c:function:: int uv_run(uv_loop_t* loop, uv_run_mode mode)
|
||||
|
||||
This function runs the event loop. It will act differently depending on the
|
||||
|
||||
Loading…
Reference in New Issue
Block a user