develooper Front page | perl.perl5.porters | Postings from August 2001

Re: SV: Implementing Callbacks (Was: RE: [PATCH] Adding callbacksto thecore)

Thread Previous | Thread Next
From:
David M. Lloyd
Date:
August 23, 2001 06:40
Subject:
Re: SV: Implementing Callbacks (Was: RE: [PATCH] Adding callbacksto thecore)
Message ID:
Pine.LNX.4.33.0108230838430.10944-100000@homebody.freemm.org
On Thu, 23 Aug 2001, Arthur Bergman wrote:

> What am I missing?
>
> I suggest that another thread is never allowed to modify if a callback
> is enabled or not. So we can do
>
> if(async) {
>     if signal do signals
>     if callback do callbacks
> }

Wouldn't another thread still be able to enable a callback, if it was just
a matter of setting a flag?  I mean, the flag would eventually dribble
into the main thread, wouldn't it?  Or can we not count on that?

- D

<dmlloyd@tds.net>


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