Release the requested thread pool resource
This commit is contained in:
parent
7eb41179ed
commit
048ef5e4bf
1 changed files with 3 additions and 1 deletions
4
ggml.c
4
ggml.c
|
@ -89,7 +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) {
|
static int pthread_join(pthread_t thread, void * unused) {
|
||||||
(void) unused;
|
(void) unused;
|
||||||
return (int) WaitForSingleObject(thread, INFINITE);
|
int csq =(int) WaitForSingleObject(thread, INFINITE);
|
||||||
|
CloseHandle(thread);
|
||||||
|
return csq;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int sched_yield (void) {
|
static int sched_yield (void) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue