MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / ISC_kill

Function ISC_kill

src/common/os/win32/isc_ipc.cpp:156–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154Firebird::GlobalPtr<OpenEvents> openEvents;
155
156int ISC_kill(SLONG pid, SLONG signal_number, HANDLE object_hndl)
157{
158/**************************************
159 *
160 * I S C _ k i l l ( W I N _ N T )
161 *
162 **************************************
163 *
164 * Functional description
165 * Notify somebody else.
166 *
167 **************************************/
168
169 // If we're simply trying to poke ourselves, do so directly.
170 ISC_signal_init();
171
172 if (pid == process_id)
173 return SetEvent(object_hndl) ? 0 : -1;
174
175 HANDLE handle = openEvents->getEvent(pid, signal_number);
176 if (!handle)
177 return -1;
178
179 return SetEvent(handle) ? 0 : -1;
180}
181
182HANDLE ISC_make_signal(bool /*create_flag*/, bool manual_reset, int process_idL, int signal_number)
183{

Callers 1

eventPostMethod · 0.85

Calls 2

getEventMethod · 0.80
ISC_signal_initFunction · 0.70

Tested by

no test coverage detected