Re: HowTo for queues - open issues resolved in 3.0.1

2010-06-08 Thread Leon Pollak
On Sunday June 6 2010, David Sugar wrote: > I have added new create() methods to the reusable pool templates so it > can return pre-constructed (initialized) objects. I also found a bug > internal to queueof lifo method and changed the templates for queueof > and stackof so that the pool is passed

Re: HowTo for queues - open issues resolved in 3.0.1

2010-06-06 Thread David Sugar
I have added new create() methods to the reusable pool templates so it can return pre-constructed (initialized) objects. I also found a bug internal to queueof lifo method and changed the templates for queueof and stackof so that the pool is passed to the constructor rather than in the template (l

Re: HowTo for queues

2010-06-05 Thread Leon Pollak
On Saturday June 5 2010, David Sugar wrote: > First, the queue core class can use a reusable pool, but this is for > internal management of it's own pointers. The queue is passed an object > to post into it that is derived from "Object", which are reference > counted. Hence, existing on the queue

Re: HowTo for queues

2010-06-05 Thread David Sugar
First, the queue core class can use a reusable pool, but this is for internal management of it's own pointers. The queue is passed an object to post into it that is derived from "Object", which are reference counted. Hence, existing on the queue is actually a reference count instance of a referen

Re: HowTo for queues

2010-06-04 Thread Leon Pollak
Thank you David. I shall be really glad if you will be able to give me the list of classes to be used for the following simple task: Two threads A and B. A receives data from somewhere into buffers (of the same size) polled from buffer pool (which classes?). Then A sends these buffers to B (whi

Re: HowTo for queues

2010-06-03 Thread David Sugar
The queue class was written because there are some older Bayonne drivers that would likely make use of it when the rest of Bayonne is ported to ucommon, and it is also based on some stuff also used in the original Common C++. However, those drivers (in particular, Dialogic and Pika, which used an