Commit Graph

9 Commits

Author SHA1 Message Date
500fe17076 Removed un-needed function overload for setting userdata
Fixed bugs in win64 impl where it did not check if the process was a known invalid value
2025-03-06 15:54:50 +11:00
12cc5bd38e Merge branch 'main' of ssh://git.rileyk.au:19482/riley/uniproc 2025-03-06 15:35:59 +11:00
682773a934 Added a function to wait on any process completing
Added function to check if all processes are finished without blocking
Added a function to set a uniproc_process object to a known invalid value
Added a function to check if a process is a known invalid value
Added userdata variable to struct as well as functions to set/get it

AMEND: Updated uniproc_close_process to set the process to a known invalid value
All functions now ignore uniproc_process's with a known invalid value
uniproc_create_process will now return a known invalid value if it fails to create a process
2025-03-06 15:35:53 +11:00
7c437b8f30 Added a function to wait on any process completing
Added function to check if all processes are finished without blocking
Added a function to set a uniproc_process object to a known invalid value
Added a function to check if a process is a known invalid value
Added userdata variable to struct as well as functions to set/get it

Updated uniproc_close_process to set the process to a known invalid value
All functions now ignore uniproc_process's with a known invalid value
uniproc_create_process will now return a known invalid value if it fails to create a process
2025-03-06 15:29:37 +11:00
f4927bf136 Fixed missing semicolons
Fixed default struct initialization because I write C++ normally
Fixed bug where uniproc_win64.c would not correctly append arguments to the command-line string
2025-03-04 13:36:31 +11:00
4df03647ba Implemented uniproc_unix.c for unix platforms 2025-03-04 13:27:33 +11:00
01602578fd Set struct default initialization values
Modified uniproc_create_process signature to take a command and a list of arguments
Updated uniproc_win64.c to terminate the process before closing the handles
Updated uniproc_win64.c to convert the command and list of arguments into a command-line string
2025-03-04 13:26:30 +11:00
d47f6be401 Implemented windows implementation of uniproc 2025-03-02 22:46:22 +11:00
9cc6d81a9f Initial commit 2025-03-02 15:32:01 +11:00