Boost logo

Boost :

From: Tim Blechmann (tim_at_[hidden])
Date: 2008-04-19 06:18:59


> Now, without knowing anything about how ctor, dtor, push and pop are
> implemented, what can be done? Adding allocator as a parameter just like
> a std::container;

beside using an stl-style allocator it might makes sense to use a caching
free-list ...

> perhaps
> making a version that includes a monitor (so that pop blocks rather than
> returns false) and so forth.

i would be careful with that ... one would need to make sure, that the
monitor/semaphore implementation is lock-free itself ...

cheers, tim

-- 
tim_at_[hidden]
http://tim.klingt.org
There's no such entity as "most people". These are generalities. All
generalities are meaningless. You've got to pin it down to a specific
person doing a specific thing at a specific time and space.
  William S. Burroughs

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk