Hi

If I have a thread that is sleeping indefinitely, how can I wake it from some other thread?

use strict;
use warnings;
use Thread qw(async);

my $thr = async {
    print "thread is sleeping\n";
    sleep;
    print "thread is back\n";
};
sleep(1);

## do something here to wake the thread up ... but what?

$thr->join;
print "DONE";

thanks

Daniel

--
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to