c/pthread: nogc

This commit is contained in:
xushiwei
2024-08-15 20:43:52 +08:00
parent 03f0a4289b
commit f5bbf4b515
7 changed files with 115 additions and 63 deletions

View File

@@ -0,0 +1,11 @@
#define GC_THREADS
#include <gc.h>
#include <pthread.h>
int llgoPthreadCreate(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void *), void *arg) {
return GC_pthread_create(thread, attr, start_routine, arg);
}
int llgoPthreadJoin(pthread_t thread, void **retval) {
return GC_pthread_join(thread, retval);
}