test cycles made from weak symbols

This commit is contained in:
Nikita Smith
2025-04-30 11:47:06 -07:00
committed by Ryan Fleury
parent 2c6db1b566
commit f39397fa78
6 changed files with 236 additions and 15 deletions
+6
View File
@@ -786,6 +786,12 @@ os_process_detach(OS_Handle handle)
NotImplemented;
}
internal B32
os_process_kill(OS_Handle handle)
{
NotImplemented;
}
////////////////////////////////
//~ rjf: @os_hooks Threads (Implemented Per-OS)
+1
View File
@@ -257,6 +257,7 @@ internal OS_Handle os_process_launch(OS_ProcessLaunchParams *params);
internal B32 os_process_join(OS_Handle handle, U64 endt_us);
internal B32 os_process_join_exit_code(OS_Handle handle, U64 endt_us, int *exit_code_out);
internal void os_process_detach(OS_Handle handle);
internal B32 os_process_kill(OS_Handle handle);
////////////////////////////////
//~ rjf: @os_hooks Threads (Implemented Per-OS)
+8
View File
@@ -1086,6 +1086,14 @@ os_process_join_exit_code(OS_Handle handle, U64 endt_us, int *exit_code_out)
return result;
}
internal B32
os_process_kill(OS_Handle handle)
{
HANDLE process = (HANDLE)handle.u64[0];
BOOL was_terminated = TerminateProcess(process, 999);
return was_terminated;
}
internal void
os_process_detach(OS_Handle handle)
{