* Release the requested thread pool resource
* Release the requested thread pool resource 2
---------
Co-authored-by: Zongfu ZF3 Qu <redacted>
static int pthread_join(pthread_t thread, void * unused) {
(void) unused;
- return (int) WaitForSingleObject(thread, INFINITE);
+ int ret = (int) WaitForSingleObject(thread, INFINITE);
+ CloseHandle(thread);
+ return ret;
}
static int sched_yield (void) {