MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / close_stdin

Method close_stdin

lib/tiny-process/process_win.cpp:361–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361void Process::close_stdin() noexcept {
362 std::lock_guard<std::mutex> lock(stdin_mutex);
363 if(stdin_fd) {
364 if(*stdin_fd != nullptr)
365 CloseHandle(*stdin_fd);
366 stdin_fd.reset();
367 }
368}
369
370// Based on http://stackoverflow.com/a/1173396
371void Process::kill(bool /*force*/) noexcept {

Callers 2

mainFunction · 0.45
mainFunction · 0.45

Calls 1

resetMethod · 0.45

Tested by 1

mainFunction · 0.36