tester for linkers

This commit is contained in:
Nikita Smith
2025-06-25 10:53:21 -07:00
committed by Ryan Fleury
parent 19a7ada1dc
commit b9768be4ed
8 changed files with 688 additions and 54 deletions
+6
View File
@@ -774,6 +774,12 @@ os_process_join(OS_Handle handle, U64 endt_us)
NotImplemented;
}
internal B32
os_process_join_exit_code(OS_Handle handle, U64 endt_us, int *exit_code_out)
{
NotImplemented;
}
internal void
os_process_detach(OS_Handle handle)
{
+1
View File
@@ -255,6 +255,7 @@ internal void os_sleep_milliseconds(U32 msec);
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);
////////////////////////////////
+16
View File
@@ -1070,6 +1070,22 @@ os_process_join(OS_Handle handle, U64 endt_us)
return (result == WAIT_OBJECT_0);
}
internal B32
os_process_join_exit_code(OS_Handle handle, U64 endt_us, int *exit_code_out)
{
B32 result = 0;
if(os_process_join(handle, endt_us))
{
DWORD exit_code;
if(GetExitCodeProcess((HANDLE)handle.u64[0], &exit_code))
{
*exit_code_out = exit_code;
result = 1;
}
}
return result;
}
internal void
os_process_detach(OS_Handle handle)
{