Branch: Tag:

2004-01-10

2004-01-10 23:15:43 by Martin Nilsson <mani@lysator.liu.se>

this_object() -> this

Rev: lib/modules/Thread.pmod:1.41

454: Inside #if constant(thread_create)
   case 't':    return "Thread.Farm().Result";    case 'O': -  return sprintf( "%t(%d %O)", this_object(), ready, value ); +  return sprintf( "%t(%d %O)", this, ready, value );    }    }    }
488: Inside #if constant(thread_create)
   else if( q[0] )    ([object]q[0])->provide( res );    object lock = mutex->lock(); -  free_threads += ({ this_object() }); +  free_threads += ({ this });    lock = 0;    st = gethrtime()-st;    total_time += st/1000.0;
499: Inside #if constant(thread_create)
   ft_cond->broadcast();    } else {    object lock = mutex->lock(); -  threads -= ({ this_object() }); -  free_threads -= ({ this_object() }); +  threads -= ({ this }); +  free_threads -= ({ this });    lock = 0;    destruct();    return;
546: Inside #if constant(thread_create)
   case 't':    return "Thread.Farm().Handler";    case 'O': -  return sprintf( "%t(%f / %d, %d)", this_object(), +  return sprintf( "%t(%f / %d, %d)", this,    total_time, max_time, handled );    }    }
695:    // Should be destructed when the mutex is, but we can't pull that    // off. Try to simulate it as well as possible.    if (dec_locks) return 0; -  destruct (this_object()); +  destruct (this);    return 1;    }