On Monday 04 June 2001 11:54, Ian Bicking wrote:
> Tavis Rudd <[EMAIL PROTECTED]> wrote:
> > Good idea. I've never heard of a Stack class like this
> > but it would be very easy to create a subclass of Queue
> > that has LIFO rather than FIFO behaviour. Do you think
> > it would make much of a difference?
> Well, what about .pop() and .append() ? If they are
> atomic, then they are thread-safe. Append is atomic, and
> I bet pop is too. But maybe there's spiffier things that
> the Queue class does that a Stack class could do too.
> Queue docs specifically refer to subclassing to make a
> Stack class.
The Queue class provides support for a maximum size and
blocking gets and puts associated with full and empty Queues.
Subclassing Queue would provide these and should require no
other changes to the WebKit code. But is a Stack actually faster
than Queue with most recently active threads in this case?
Tavis
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-devel