c/pthread: nogc
This commit is contained in:
11
c/pthread/_wrap/pthread_gc.c
Normal file
11
c/pthread/_wrap/pthread_gc.c
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user