MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / destroy

Method destroy

src/hx/libs/std/Process.cpp:70–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 }
69
70 void destroy()
71 {
72 if (open)
73 {
74 #ifdef NEKO_WINDOWS
75 if (eread)
76 CloseHandle(eread);
77 if (oread)
78 CloseHandle(oread);
79 if (iwrite)
80 CloseHandle(iwrite);
81 CloseHandle(pinf.hProcess);
82 CloseHandle(pinf.hThread);
83 #else
84 if (eread!=-1)
85 do_close(eread);
86 if (oread!=-1)
87 do_close(oread);
88 if (iwrite!=-1)
89 do_close(iwrite);
90 #endif
91 open = false;
92 }
93 }
94
95 static void finalize(Dynamic obj)
96 {

Callers 2

finalizeMethod · 0.45
_hx_std_process_closeFunction · 0.45

Calls 1

do_closeFunction · 0.85

Tested by

no test coverage detected