#define _LIBOBJC
#include "tconfig.h"
#include "coretypes.h"
#include "tm.h"
#include "defaults.h"
#include <objc/thr.h>
#include "runtime.h"
#include <gthr.h>
int
__objc_init_thread_system(void)
{
return __gthread_objc_init_thread_system ();
}
int
__objc_close_thread_system(void)
{
return __gthread_objc_close_thread_system ();
}
objc_thread_t
__objc_thread_detach(void (*func)(void *), void *arg)
{
return __gthread_objc_thread_detach (func, arg);
}
int
__objc_thread_set_priority(int priority)
{
return __gthread_objc_thread_set_priority (priority);
}
int
__objc_thread_get_priority(void)
{
return __gthread_objc_thread_get_priority ();
}
void
__objc_thread_yield(void)
{
__gthread_objc_thread_yield ();
}
int
__objc_thread_exit(void)
{
return __gthread_objc_thread_exit ();
}
objc_thread_t
__objc_thread_id(void)
{
return __gthread_objc_thread_id ();
}
int
__objc_thread_set_data(void *value)
{
return __gthread_objc_thread_set_data (value);
}
void *
__objc_thread_get_data(void)
{
return __gthread_objc_thread_get_data ();
}
int
__objc_mutex_allocate(objc_mutex_t mutex)
{
return __gthread_objc_mutex_allocate (mutex);
}
int
__objc_mutex_deallocate(objc_mutex_t mutex)
{
return __gthread_objc_mutex_deallocate (mutex);
}
int
__objc_mutex_lock(objc_mutex_t mutex)
{
return __gthread_objc_mutex_lock (mutex);
}
int
__objc_mutex_trylock(objc_mutex_t mutex)
{
return __gthread_objc_mutex_trylock (mutex);
}
int
__objc_mutex_unlock(objc_mutex_t mutex)
{
return __gthread_objc_mutex_unlock (mutex);
}
int
__objc_condition_allocate(objc_condition_t condition)
{
return __gthread_objc_condition_allocate (condition);
}
int
__objc_condition_deallocate(objc_condition_t condition)
{
return __gthread_objc_condition_deallocate (condition);
}
int
__objc_condition_wait(objc_condition_t condition, objc_mutex_t mutex)
{
return __gthread_objc_condition_wait (condition, mutex);
}
int
__objc_condition_broadcast(objc_condition_t condition)
{
return __gthread_objc_condition_broadcast (condition);
}
int
__objc_condition_signal(objc_condition_t condition)
{
return __gthread_objc_condition_signal (condition);
}