httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <>
Date Thu, 16 Apr 1998 10:22:46 GMT
On Wed, 15 Apr 1998, Marc Slemko wrote:

> On Wed, 15 Apr 1998, Dean Gaudet wrote:
> > Unfortunately though you can't just use these preconstructed headers as
> > part of a writev(), each reader has to copy them.  This is because the
> > writev() has an unbounded time limit, and you don't want to have an
> > unbounded cycle of buffers.
> Hmm.  If pointer assignment was atomic you could writev it.  This is an
> atypical situation because here all you need is atomic updates; you don't
> care if the time changes between when you do the writev() and when it is
> sent.  Well, you could care in some situations I guess but I don't know
> that you can guarantee that if you need it in the current code.  But just
> copying it is probably cheaper than trying to avoid it.

Pointer assignment is atomic (on any architecture worth caring about). 
Modification of the time string isn't atomic.  So you can't have it in
flight anywhere.


View raw message