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

SV: SV: Implementing Callbacks (Was: RE: [PATCH] Adding callbacks to thecore)

Thread Previous | Thread Next
From:
Arthur Bergman
Date:
August 22, 2001 13:18
Subject:
SV: SV: Implementing Callbacks (Was: RE: [PATCH] Adding callbacks to thecore)
Message ID:
00d701c12b48$9d627680$052aa8c0@foo

> At 10:14 PM 8/22/2001 +0200, Arthur Bergman wrote:
> >Asynchronous C function notifies callback should be run and stores data at 
> >known position, unlocks mutex.
> 
> If the async C function is a real async C function (from a signal 
> handler/AST routine/other interrupt source) they can't mess with the mutex...
> 
> Dan
> 

True, but I was refeering this his asynchronous callback from a different thread. 

If it is signal async function run in the same executing thread then we don't need to lock the mutex anyway and I assume that we don't need to bother with the thread memory rules either. A real async C function shouldn't mess with many things :)

Arthur


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