| Path: | lib/mues/workerthread.rb (CVS) |
| Last Update: | Sat Aug 18 22:54:10 -0700 2007 |
This file provides a derivative of the Thread class which is capable of storing an associated timestamp. This functionality can be used to ascertain how long the thread has been in an idle state.
require 'mues/workerthread'
thr = WorkerThread.new( args ) {|args| doSomething() }
puts "Thread #{thr.desc} has been running for #{thr.runtime} seconds."
$Id: workerthread.rb 1206 2004-05-09 21:25:11Z deveiant $
Copyright (c) 2000-2003 The FaerieMUD Consortium. All rights reserved.
This module is free software. You may use, modify, and/or redistribute this software under the terms of the Perl Artistic License. (See language.perl.com/misc/Artistic.html)
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.