develooper Front page | perl.ithreads | Postings from January 2008

Re: Invoking method in other thread context

Thread Previous | Thread Next
From:
Jerry D. Hedden
Date:
January 8, 2008 19:02
Subject:
Re: Invoking method in other thread context
Message ID:
1ff86f510801081313i1cfff770la3b1b024540044f4@mail.gmail.com
> one thread can call a function in other thread's context
>
> So how do we do it in Perl?
> Sending signal and relaying the command somehow?

If you upgrade to the lastest versions of 'threads' and
threads::shared from CPAN, you can send signals to threads.
You can also uses queues to send data using Thread::Queue.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About