MCPcopy Create free account
hub / github.com/agraef/pure-lang / MakeEvents

Function MakeEvents

purepad/Pipe.cpp:139–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139static void MakeEvents(ThreadInfo* ti)
140{
141 SECURITY_ATTRIBUTES saAttr;
142
143 saAttr.nLength = sizeof(SECURITY_ATTRIBUTES);
144 saAttr.bInheritHandle = TRUE;
145 saAttr.lpSecurityDescriptor = NULL;
146
147 sprintf(ti->szBreak, "PURE_SIGINT-%u", ti->pi.dwProcessId);
148 sprintf(ti->szKill, "PURE_SIGTERM-%u", ti->pi.dwProcessId);
149 ti->hBreak = CreateEvent(&saAttr, TRUE, FALSE, ti->szBreak);
150 ti->hKill = CreateEvent(&saAttr, TRUE, FALSE, ti->szKill);
151}
152
153static BOOL MakeTempName(CString& name)
154{

Callers 1

CompileRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected