obsolete/thread.c
void *__thread_exec( JIMP_thread_s *vmt ) {

	JIMP_var param[1];

  /* For suspend, resume methods */ 
	__add_sig_handler();

  /* Wait for the start() signal */
	pthread_mutex_lock( &vmt->s_mutex );

  /* Exec run() method */
	param[0].obj = vmt->obj;
	JIMP_exec_method( JIMP_OBJ_CLASS( vmt->obj ), vmt->run_method, param, 1, vmt );

	pthread_mutex_unlock( &vmt->s_mutex );

  /* Try to destroy stack area for this thread */
	free( vmt->VM_stack );
	free( vmt );
}
/* Execute run() method of the target */
Execute run() method of the target
Execute run () method of the target
void *__thread_exec( JIMP_thread_s *vmt ) {
	JIMP_var param[1];
	__add_sig_handler();
	pthread_mutex_lock( &vmt->s_mutex );
	param[0].obj = vmt->obj;
	JIMP_exec_method( JIMP_OBJ_CLASS( vmt->obj ), vmt->run_method, param, 1, vmt );
	pthread_mutex_unlock( &vmt->s_mutex );
	free( vmt->VM_stack );
	free( vmt );
}
void * __thread_exec ( JIMP_thread_s * vmt ) { JIMP_var param [ 1 ] ; __add_sig_handler ( ) ; pthread_mutex_lock ( & vmt -> s_mutex ) ; param [ 0 ] . obj = vmt -> obj ; JIMP_exec_method ( JIMP_OBJ_CLASS ( vmt -> obj ) , vmt -> run_method , param , 1 , vmt ) ; pthread_mutex_unlock ( & vmt -> s_mutex ) ; free ( vmt -> VM_stack ) ; free ( vmt ) ; }
Execute run() method of the target
Execute run () method of the target
/* For suspend, resume methods */ /* Wait for the start() signal */ /* Exec run() method */ /* Try to destroy stack area for this thread */