Skip to content

Commit 00df3ec

Browse files
committed
doc: clarify uv_loop_t.data field lifetime
Fixes #1503
1 parent 9486e46 commit 00df3ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/src/loop.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ Public members
3838

3939
.. c:member:: void* uv_loop_t.data
4040
41-
Space for user-defined arbitrary data. libuv does not use this field.
41+
Space for user-defined arbitrary data. libuv does not use this field. libuv does, however,
42+
initialize it to NULL in :c:func:`uv_loop_init`, and it poisons the value (on debug builds)
43+
on :c:func:`uv_loop_close`.
4244

4345

4446
API

0 commit comments

Comments
 (0)