aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorTrevor Norris <trev.norris@gmail.com>2020-03-18 11:29:10 -0600
committerJameson Nash <vtjnash@gmail.com>2020-08-04 10:31:18 -0400
commit70bbc093f14eabab36ce466527fc7bce49bbaf04 (patch)
tree65c35018b54012ca31dd932f56ba930a26990489 /docs/src
parentd0e323971e9a35f494dfe2bd8d652b89e2e08661 (diff)
downloadlibuv-70bbc093f14eabab36ce466527fc7bce49bbaf04.tar.gz
libuv-70bbc093f14eabab36ce466527fc7bce49bbaf04.zip
include: add internal fields struct to uv_loop_t
Add struct `uv__loop_internal_fields_t` as a location for future additions to `uv_loop_t` while also maintaining v1.x compatibility. Currently `uv__loop_internal_fields_t` only contains the `flags` field. The reason for adding the `flags` field is because the same field was never added to `UV_LOOP_PRIVATE_FIELDS` in Windows as it was in Unix. The idea for creating a struct and attaching it to `uv_loop_t` for future API enhancements was taken from a comment by bnoordhuis in: https://github.com/libuv/libuv/issues/2506#issuecomment-540050665 Also add `internal_fields` to `uv_loop_t` to store the pointer to `uv__loop_internal_fields_t`. This naming makes more sense than just using `active_reqs.unused[1]`. To maintain ABI compatibility, shrink the `unused` array. PR-URL: https://github.com/libuv/libuv/pull/2725 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Jameson Nash <vtjnash@gmail.com>
Diffstat (limited to 'docs/src')
0 files changed, 0 insertions, 0 deletions