Release the requested thread pool resource 2
This commit is contained in:
parent
048ef5e4bf
commit
55c283c5aa
1 changed files with 2 additions and 2 deletions
4
ggml.c
4
ggml.c
|
@ -89,9 +89,9 @@ static int pthread_create(pthread_t * out, void * unused, thread_ret_t(*func)(vo
|
|||
|
||||
static int pthread_join(pthread_t thread, void * unused) {
|
||||
(void) unused;
|
||||
int csq =(int) WaitForSingleObject(thread, INFINITE);
|
||||
int ret = (int) WaitForSingleObject(thread, INFINITE);
|
||||
CloseHandle(thread);
|
||||
return csq;
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int sched_yield (void) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue