- or download this
use Thread::Queue;
...
# now do yer thang...when you get a "shutdown event":
#
$queues{$killtid}->enqueue('Kill job');
- or download this
sub run {
my $q = shift;
...
#
}
}
- or download this
package WorkerResource;
...
my $result = $q->wait($msgid);