From 204034539b5e2b88ba8a6074ac460d94f9937299 Mon Sep 17 00:00:00 2001 From: Martin Nilsson <mani@lysator.liu.se> Date: Sun, 11 Jan 2004 00:15:43 +0100 Subject: [PATCH] this_object() -> this Rev: lib/modules/Thread.pmod:1.41 --- lib/modules/Thread.pmod | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/modules/Thread.pmod b/lib/modules/Thread.pmod index 91e620f602..dae8b726d3 100644 --- a/lib/modules/Thread.pmod +++ b/lib/modules/Thread.pmod @@ -454,7 +454,7 @@ optional class Farm 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,7 +488,7 @@ optional class Farm 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,8 +499,8 @@ optional class Farm 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,7 +546,7 @@ optional class Farm 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,7 +695,7 @@ optional class MutexKey (static function(:void) dec_locks) // 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; } -- GitLab