obsolete/locks.c
void __remove_all_locks( JIMP_thread_s *own_thread ) {

	JIMP_lock *l, *p;
	int n_locks;

	p = (JIMP_lock *)&(own_thread->lock);
	l = p->next;
	
	while( l ){
	  n_locks = abs(l->n_times_locked);
	  while( n_locks > 0 ) { n_locks--; __thread_unlock( l->obj_ref, own_thread );}
	  p = (JIMP_lock *)&(own_thread->lock);
	  l = p->next;
	}
}
/* Remove all locks for all object locked by this thread */
Remove all locks for all object locked by this thread
Remove all locks for all object locked by this thread
void __remove_all_locks( JIMP_thread_s *own_thread ) {
	JIMP_lock *l, *p;
	int n_locks;
	p = (JIMP_lock *)&(own_thread->lock);
	l = p->next;
	while( l ){
	  n_locks = abs(l->n_times_locked);
	  while( n_locks > 0 ) { n_locks--; __thread_unlock( l->obj_ref, own_thread );}
	  p = (JIMP_lock *)&(own_thread->lock);
	  l = p->next;
	}
}
void __remove_all_locks ( JIMP_thread_s * own_thread ) { JIMP_lock * l , * p ; int n_locks ; p = ( JIMP_lock * ) & ( own_thread -> lock ) ; l = p -> next ; while ( l ) { n_locks = abs ( l -> n_times_locked ) ; while ( n_locks > 0 ) { n_locks -- ; __thread_unlock ( l -> obj_ref , own_thread ) ; } p = ( JIMP_lock * ) & ( own_thread -> lock ) ; l = p -> next ; } }
Remove all locks for all object locked by this thread
Remove all locks for all object locked by this thread