obsolete/thread.c
void __thread_lock_nadd( JIMP_obj obj, JIMP_thread_s *own_thread ) {

	JIMP_thread_s *obj_th;
	obj_th = heap[obj].vm_t;

	pthread_mutex_lock( &obj_th->o_lock ); 

   /* Who is owner of this lock */
	heap[obj].vm_t->towner = own_thread->t;
	heap[obj].vm_t->towner_obj = own_thread->obj;
}
/* Set lock to obj by thread and DO NOT add lock to the lock list */
Set lock to obj by thread and DO NOT add lock to the lock list
Set lock to obj by thread and DO NOT add lock to the lock list
void __thread_lock_nadd( JIMP_obj obj, JIMP_thread_s *own_thread ) {
	JIMP_thread_s *obj_th;
	obj_th = heap[obj].vm_t;
	pthread_mutex_lock( &obj_th->o_lock ); 
	heap[obj].vm_t->towner = own_thread->t;
	heap[obj].vm_t->towner_obj = own_thread->obj;
}
void __thread_lock_nadd ( JIMP_obj obj , JIMP_thread_s * own_thread ) { JIMP_thread_s * obj_th ; obj_th = heap [ obj ] . vm_t ; pthread_mutex_lock ( & obj_th -> o_lock ) ; heap [ obj ] . vm_t -> towner = own_thread -> t ; heap [ obj ] . vm_t -> towner_obj = own_thread -> obj ; }
Set lock to obj by thread and DO NOT add lock to the lock list
Set lock to obj by thread and DO NOT add lock to the lock list
/* Who is owner of this lock */