mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-28 06:40:00 +00:00
Implement detached threads (#88)
The `AsyncTerm` thread is never joined but its handle is immediately closed. This works fine on Windows, but causes issues on other platforms where threads need to be explicitly detached if never joined (pthread, wiiu). This adds a new `PltDetachThread` function, which can be used instead of `PltCloseThread` to explictly detach a thread, requiring it to no longer be closed.
This commit is contained in:
1 parent
ec171fd7ca
commit
9545dd7603
3 files changed
+47
-11
No files matched your search
@@ -66,6 +66,7 @@ void PltCloseThread(PLT_THREAD* thread);
|
||||
void PltInterruptThread(PLT_THREAD* thread);
|
||||
bool PltIsThreadInterrupted(PLT_THREAD* thread);
|
||||
void PltJoinThread(PLT_THREAD* thread);
|
||||
void PltDetachThread(PLT_THREAD* thread);
|
||||
|
||||
int PltCreateEvent(PLT_EVENT* event);
|
||||
void PltCloseEvent(PLT_EVENT* event);
|
||||
|
||||
Reference in new issue
Block a user