httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: apache-apr
Date Tue, 13 Apr 1999 23:20:11 GMT


On Tue, 13 Apr 1999, Manoj Kasichainula wrote:

> On Tue, Apr 13, 1999 at 04:02:19PM -0700, Dean Gaudet wrote:
> > On Tue, 13 Apr 1999, Manoj Kasichainula wrote:
> > 
> > > Even deferred cancellation? I've never liked asynchronous
> > > cancellation, but is deferred cancellation with the ability to turn
> > > cancellability on and off evil as well?
> > 
> > If you mean testing a global to find out if a thread should kill itself,
> > I'm all for that.  As long as the thread kills itself things work.
> 
> No, I'm talking about pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED).
> I'd prefer to use it only for cases where we can't make a thread
> exit by itself, but how much should we shy away from it? This kind of
> question can't really be answered easily without an example, so I'll
> mention the fcntl locking problem.

Well, unless it cancels itself during a 3rd party module it'd work fine...
avoiding that could be a pain though.

3rd party stuff is the main reason I consider all async notification to be
a danger... 

Dean


Mime
View raw message