Skip to content

Commit

Permalink
add thread_handle
Browse files Browse the repository at this point in the history
  • Loading branch information
actboy168 committed Oct 8, 2023
1 parent a9148bd commit 2ab6fe1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bee/subprocess/subprocess_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
1 change: 1 addition & 0 deletions bee/subprocess/subprocess_win.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ namespace bee::subprocess {
std::optional<process> 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<uint32_t> wait() noexcept;
Expand Down

0 comments on commit 2ab6fe1

Please sign in to comment.