diff options
author | Brad King <brad.king@kitware.com> | 2023-11-06 20:00:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-11-17 13:51:25 (GMT) |
commit | 70d88a536135067bff693de5d6c96d866dc5b00e (patch) | |
tree | d786813f7b135ee56f76e9ad7a05f7af44b15390 /Source/cmUVHandlePtr.h | |
parent | 17690558c3ef6e6db850aa9f2993ea07467fe536 (diff) | |
download | CMake-70d88a536135067bff693de5d6c96d866dc5b00e.zip CMake-70d88a536135067bff693de5d6c96d866dc5b00e.tar.gz CMake-70d88a536135067bff693de5d6c96d866dc5b00e.tar.bz2 |
cmUVHandlePtr: Add uv_idle_ptr
Wrap a `uv_idle_t` handle.
Diffstat (limited to 'Source/cmUVHandlePtr.h')
-rw-r--r-- | Source/cmUVHandlePtr.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmUVHandlePtr.h b/Source/cmUVHandlePtr.h index f5e2097..e1bf0d0 100644 --- a/Source/cmUVHandlePtr.h +++ b/Source/cmUVHandlePtr.h @@ -196,6 +196,13 @@ public: void send(); }; +struct uv_idle_ptr : public uv_handle_ptr_<uv_idle_t> +{ + CM_INHERIT_CTOR(uv_idle_ptr, uv_handle_ptr_, <uv_idle_t>); + + int init(uv_loop_t& loop, void* data = nullptr); +}; + struct uv_signal_ptr : public uv_handle_ptr_<uv_signal_t> { CM_INHERIT_CTOR(uv_signal_ptr, uv_handle_ptr_, <uv_signal_t>); @@ -255,6 +262,8 @@ extern template class uv_handle_ptr_base_<uv_handle_t>; UV_HANDLE_PTR_INSTANTIATE_EXTERN(async) +UV_HANDLE_PTR_INSTANTIATE_EXTERN(idle) + UV_HANDLE_PTR_INSTANTIATE_EXTERN(signal) UV_HANDLE_PTR_INSTANTIATE_EXTERN(pipe) |