summaryrefslogtreecommitdiffstats
path: root/Source/cmUVHandlePtr.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-11-06 20:00:28 (GMT)
committerBrad King <brad.king@kitware.com>2023-11-17 13:51:25 (GMT)
commit70d88a536135067bff693de5d6c96d866dc5b00e (patch)
treed786813f7b135ee56f76e9ad7a05f7af44b15390 /Source/cmUVHandlePtr.cxx
parent17690558c3ef6e6db850aa9f2993ea07467fe536 (diff)
downloadCMake-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.cxx')
-rw-r--r--Source/cmUVHandlePtr.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmUVHandlePtr.cxx b/Source/cmUVHandlePtr.cxx
index 0e169df..951ef3b 100644
--- a/Source/cmUVHandlePtr.cxx
+++ b/Source/cmUVHandlePtr.cxx
@@ -254,12 +254,20 @@ int uv_tty_ptr::init(uv_loop_t& loop, int fd, int readable, void* data)
}
#endif
+int uv_idle_ptr::init(uv_loop_t& loop, void* data)
+{
+ this->allocate(data);
+ return uv_idle_init(&loop, *this);
+}
+
template class uv_handle_ptr_base_<uv_handle_t>;
#define UV_HANDLE_PTR_INSTANTIATE_EXPLICIT(NAME) \
template class uv_handle_ptr_base_<uv_##NAME##_t>; \
template class uv_handle_ptr_<uv_##NAME##_t>;
+UV_HANDLE_PTR_INSTANTIATE_EXPLICIT(idle)
+
UV_HANDLE_PTR_INSTANTIATE_EXPLICIT(signal)
UV_HANDLE_PTR_INSTANTIATE_EXPLICIT(pipe)