/* inline functions ***********************************************************/
-/* thread_get_object ***********************************************************
-
- Return the Java for the given thread.
-
- ARGUMENTS:
- t ... thread
-
- RETURN:
- the Java object
-
-*******************************************************************************/
-
-inline static java_handle_t *thread_get_object(threadobject *t)
-{
- return LLNI_WRAP(t->object);
-}
-
-
-/* threads_thread_set_object ***************************************************
-
- Set the Java object for the given thread.
-
- ARGUMENTS:
- t ... thread
- o ... Java object
-
-*******************************************************************************/
-
-inline static void thread_set_object(threadobject *t, java_handle_t *o)
-{
- t->object = LLNI_DIRECT(o);
-}
-
-
/* thread_get_current_object **************************************************
Return the Java object of the current thread.
java_handle_t *o;
t = THREADOBJECT;
- o = thread_get_object(t);
+ o = LLNI_WRAP(t->object);
return o;
}
{
java_handle_t *o;
- o = thread_get_object(t);
+ o = LLNI_WRAP(t->object);
return o != NULL;
}