obsolete/locks.c
void __add_lock( JIMP_obj obj, JIMP_thread_s *own_thread ) {

	JIMP_lock *l, *p;
	
	/* Check if lock on this object is exist ? */
	p = (JIMP_lock *)&(own_thread->lock);
	l = p->next;
	while( l ){
	  if( l->obj_ref == obj ) { l->n_times_locked++; return; }
	  l = l->next;
	  p = p->next;
	}
	
	l = (JIMP_lock*) malloc( sizeof(  JIMP_lock ) );
	p->next = l;
	l->obj_ref = obj;
	l->n_times_locked = 1;
	l->next = NULL;
}
/* Add lock reference to the thread's locks list */
Add lock reference to the thread's locks list
Add lock reference to the thread ' s locks list
void __add_lock( JIMP_obj obj, JIMP_thread_s *own_thread ) {
	JIMP_lock *l, *p;
	p = (JIMP_lock *)&(own_thread->lock);
	l = p->next;
	while( l ){
	  if( l->obj_ref == obj ) { l->n_times_locked++; return; }
	  l = l->next;
	  p = p->next;
	}
	l = (JIMP_lock*) malloc( sizeof(  JIMP_lock ) );
	p->next = l;
	l->obj_ref = obj;
	l->n_times_locked = 1;
	l->next = NULL;
}
void __add_lock ( JIMP_obj obj , JIMP_thread_s * own_thread ) { JIMP_lock * l , * p ; p = ( JIMP_lock * ) & ( own_thread -> lock ) ; l = p -> next ; while ( l ) { if ( l -> obj_ref == obj ) { l -> n_times_locked ++ ; return ; } l = l -> next ; p = p -> next ; } l = ( JIMP_lock * ) malloc ( sizeof ( JIMP_lock ) ) ; p -> next = l ; l -> obj_ref = obj ; l -> n_times_locked = 1 ; l -> next = NULL ; }
Add lock reference to the thread's locks list
Add lock reference to the thread ' s locks list
/* Check if lock on this object is exist ? */