mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-26 03:14:35 +00:00
ggml : release the requested thread pool resource (#3292)
* Release the requested thread pool resource * Release the requested thread pool resource 2 --------- Co-authored-by: Zongfu ZF3 Qu <quzf3@Lenovo.com>
This commit is contained in:
parent
16bc66d947
commit
7f1a0fe709
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 ret = (int) WaitForSingleObject(thread, INFINITE);
|
||||||
|
CloseHandle(thread);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int sched_yield (void) {
|
static int sched_yield (void) {
|
||||||
|
Loading…
Reference in New Issue
Block a user