diff --git a/bee/subprocess/subprocess_win.cpp b/bee/subprocess/subprocess_win.cpp index b6db6338..6e0a3e0d 100644 --- a/bee/subprocess/subprocess_win.cpp +++ b/bee/subprocess/subprocess_win.cpp @@ -492,6 +492,10 @@ namespace bee::subprocess { return hProcess; } + os_handle process::thread_handle() const noexcept { + return hThread; + } + namespace pipe { open_result open() noexcept { net::fd_t fds[2]; diff --git a/bee/subprocess/subprocess_win.h b/bee/subprocess/subprocess_win.h index 4f3e3a77..1328b232 100644 --- a/bee/subprocess/subprocess_win.h +++ b/bee/subprocess/subprocess_win.h @@ -59,6 +59,7 @@ namespace bee::subprocess { std::optional dup() noexcept; process_id get_id() const noexcept; process_handle native_handle() const noexcept; + os_handle thread_handle() const noexcept; bool is_running() noexcept; bool kill(int signum) noexcept; std::optional wait() noexcept;