From MAILER-DAEMON Thu Jun 03 13:45:32 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1OKEU0-0000jE-Iq
	for mharc-bug-commoncpp@gnu.org; Thu, 03 Jun 2010 13:45:32 -0400
Received: from [140.186.70.92] (port=43639 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1OKCCd-0006pi-HN
	for bug-commoncpp@gnu.org; Thu, 03 Jun 2010 11:19:31 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <leonp@plris.com>) id 1OKCCc-0005Fk-42
	for bug-commoncpp@gnu.org; Thu, 03 Jun 2010 11:19:27 -0400
Received: from 212.199.10.23.static.012.net.il ([212.199.10.23]:42939
	helo=plris.com) by eggs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <leonp@plris.com>) id 1OKCCb-0005F2-Sg
	for bug-commoncpp@gnu.org; Thu, 03 Jun 2010 11:19:26 -0400
Received: by plris.com (Postfix, from userid 517)
	id 41D10A8670; Thu,  3 Jun 2010 17:29:07 +0300 (IDT)
Received: from leonp.plris.com (unknown [192.168.50.57])
	by plris.com (Postfix) with ESMTP id 7A238A8336
	for <bug-commoncpp@gnu.org>; Thu,  3 Jun 2010 17:29:06 +0300 (IDT)
From: Leon Pollak <leonp@plris.com>
To: bug-commoncpp@gnu.org
Date: Thu, 3 Jun 2010 17:29:36 +0300
User-Agent: KMail/1.13.3 (Linux/2.6.33.4-95.fc13.x86_64; KDE/4.4.3; x86_64; ; )
MIME-Version: 1.0
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-Id: <201006031729.36868.leonp@plris.com>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Mailman-Approved-At: Thu, 03 Jun 2010 13:45:30 -0400
Subject: HowTo for queues
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 03 Jun 2010 15:19:31 -0000

Hello.

I am a newbie here - sorry for stupid questions (but I am definitely not a 
newbie in RT programming - 16 years with RTEMS, pSOS and similar).
I also hope that this is the correct place for such questions.

I am trying to understand uCommon queues with the help of doxygen 
documentation and examples (bayonne, ccaudio, ccscript, sipswitch) source 
code.

Unfortunately, I was not able to find ANY usage of the ucc::queue in these 
projects!

Does this mean that I do not know to search or queues are not used for some 
reason?

A lot of thanks ahead.
-- 
Leon


From MAILER-DAEMON Thu Jun 03 13:52:13 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1OKEaS-0005vf-UG
	for mharc-bug-commoncpp@gnu.org; Thu, 03 Jun 2010 13:52:12 -0400
Received: from [140.186.70.92] (port=60335 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1OKEaP-0005uS-IJ
	for bug-commoncpp@gnu.org; Thu, 03 Jun 2010 13:52:10 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <dyfet@gnutelephony.org>) id 1OKEaO-0003yj-5l
	for bug-commoncpp@gnu.org; Thu, 03 Jun 2010 13:52:09 -0400
Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:61757)
	by eggs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <dyfet@gnutelephony.org>) id 1OKEaO-0003ya-46
	for bug-commoncpp@gnu.org; Thu, 03 Jun 2010 13:52:08 -0400
Received: from [108.25.51.154] (helo=[172.16.59.91])
	by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:CAMELLIA256-SHA:256)
	(Exim 4.68) (envelope-from <dyfet@gnutelephony.org>)
	id 1OKEaM-0006Dk-Pp; Thu, 03 Jun 2010 17:52:06 +0000
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 108.25.51.154
X-Report-Abuse-To: abuse@dyndns.com (see
	http://www.dyndns.com/services/mailhop/outbound_abuse.html for
	abuse reporting information)
X-MHO-User: U2FsdGVkX19lL8eIAC78+MM2/BwvaM1L
Message-ID: <4C07EBCD.2010204@gnutelephony.org>
Date: Thu, 03 Jun 2010 13:52:13 -0400
From: David Sugar <dyfet@gnutelephony.org>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4
MIME-Version: 1.0
To: Leon Pollak <leonp@plris.com>
References: <201006031729.36868.leonp@plris.com>
In-Reply-To: <201006031729.36868.leonp@plris.com>
X-Enigmail-Version: 1.0.1
Content-Type: multipart/mixed; boundary="------------070000070000060201030709"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Cc: Bug Common C++ <bug-commoncpp@gnu.org>
Subject: Re: HowTo for queues
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 03 Jun 2010 17:52:11 -0000

This is a multi-part message in MIME format.
--------------070000070000060201030709
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

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 event queue to buffer realtime Dialogic events to Bayonne
ones) had not been ported to the newer Bayonne codebase as yet.  So it
is quite possible there is nobody currently using the class.  I think if
this is true we should at least make sure there is some unit test code
coverage for queue.

On 06/03/2010 10:29 AM, Leon Pollak wrote:
> Hello.
> 
> I am a newbie here - sorry for stupid questions (but I am definitely not a 
> newbie in RT programming - 16 years with RTEMS, pSOS and similar).
> I also hope that this is the correct place for such questions.
> 
> I am trying to understand uCommon queues with the help of doxygen 
> documentation and examples (bayonne, ccaudio, ccscript, sipswitch) source 
> code.
> 
> Unfortunately, I was not able to find ANY usage of the ucc::queue in these 
> projects!
> 
> Does this mean that I do not know to search or queues are not used for some 
> reason?
> 
> A lot of thanks ahead.

--------------070000070000060201030709
Content-Type: text/x-vcard; charset=utf-8;
 name="dyfet.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="dyfet.vcf"

begin:vcard
fn:David Sugar
n:Sugar;David
org:GNU Telephony
email;internet:dyfet@gnutelephony.org
tel;work:+1 609 465 5336
url:http://www.gnutelephony.org
version:2.1
end:vcard


--------------070000070000060201030709--


From MAILER-DAEMON Fri Jun 04 09:16:40 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1OKWlM-0001eK-0E
	for mharc-bug-commoncpp@gnu.org; Fri, 04 Jun 2010 09:16:40 -0400
Received: from [140.186.70.92] (port=44408 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1OKKur-0005Xo-Q9
	for bug-commoncpp@gnu.org; Thu, 03 Jun 2010 20:37:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <leon.pollak@gmail.com>) id 1OKKum-0000x5-EH
	for bug-commoncpp@gnu.org; Thu, 03 Jun 2010 20:37:41 -0400
Received: from mail-ww0-f41.google.com ([74.125.82.41]:43377)
	by eggs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <leon.pollak@gmail.com>) id 1OKKum-0000wu-A6
	for bug-commoncpp@gnu.org; Thu, 03 Jun 2010 20:37:36 -0400
Received: by wwb24 with SMTP id 24so603640wwb.0
	for <bug-commoncpp@gnu.org>; Thu, 03 Jun 2010 17:37:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:received:sender:from:to:subject:date
	:user-agent:cc:references:in-reply-to:mime-version:content-type
	:content-transfer-encoding:message-id;
	bh=1qcddNVECkaRxHw7GHGvZvnStaDxCL9DwV7TXFm4epw=;
	b=XpI7Yla3XSbtEEMB89Gbc0AS3btOS3uq6bPItCp65RiF8YOFZ5wNv+p+pftum2vCTf
	AXp0m3OGu0B+TJLpZ39mr1NyLrtAINvvOCerCedyBNZwOswftJi4DDOE+xyhhHIr0+B2
	P+E+gyEdW6H8Kx6vj5GJ2PO+Q11sceSaThUvI=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=sender:from:to:subject:date:user-agent:cc:references:in-reply-to
	:mime-version:content-type:content-transfer-encoding:message-id;
	b=bimEDtPuZFB9eYY//EiCZh/+fXH89gcRnuCdzsU4YIXkiEdngfSrR/4APHWPB5gLt0
	vc+9iaUAQjjaWIYobtySjHTmHfeDdvDakrcFC8E3Awr8hT3QjE5X03axeU3+zkALv5rP
	ru1qHBzgR1a5Y0UdTKj6lhGmfs5/Tsey/5ogo=
Received: by 10.227.151.77 with SMTP id b13mr10108744wbw.13.1275611854859;
	Thu, 03 Jun 2010 17:37:34 -0700 (PDT)
Received: from leonp.plris.com (bzq-79-182-42-142.red.bezeqint.net
	[79.182.42.142])
	by mx.google.com with ESMTPS id y31sm5270490wby.4.2010.06.03.17.37.31
	(version=TLSv1/SSLv3 cipher=RC4-MD5);
	Thu, 03 Jun 2010 17:37:32 -0700 (PDT)
Sender: Leon Pollak <leon.pollak@gmail.com>
From: Leon Pollak <leonp@plris.com>
To: David Sugar <dyfet@gnutelephony.org>
Date: Fri, 4 Jun 2010 03:38:00 +0300
User-Agent: KMail/1.13.3 (Linux/2.6.33.4-95.fc13.x86_64; KDE/4.4.3; x86_64; ; )
References: <201006031729.36868.leonp@plris.com>
	<4C07EBCD.2010204@gnutelephony.org>
In-Reply-To: <4C07EBCD.2010204@gnutelephony.org>
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
Message-Id: <201006040338.00809.leonp@plris.com>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Mailman-Approved-At: Fri, 04 Jun 2010 09:16:39 -0400
Cc: Bug Common C++ <bug-commoncpp@gnu.org>
Subject: Re: HowTo for queues
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 04 Jun 2010 00:37:44 -0000

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 (which classes).
B receives buffers, process them and returns to the pool.

Just, please, name the classes, i will try to understand how to use them...

Thanks again.

On Thursday June 3 2010, David Sugar wrote:
> 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 event queue to buffer realtime Dialogic events to Bayonne
> ones) had not been ported to the newer Bayonne codebase as yet.  So it
> is quite possible there is nobody currently using the class.  I think if
> this is true we should at least make sure there is some unit test code
> coverage for queue.
> 
> On 06/03/2010 10:29 AM, Leon Pollak wrote:
> > Hello.
> > 
> > I am a newbie here - sorry for stupid questions (but I am definitely not
> > a newbie in RT programming - 16 years with RTEMS, pSOS and similar). I
> > also hope that this is the correct place for such questions.
> > 
> > I am trying to understand uCommon queues with the help of doxygen
> > documentation and examples (bayonne, ccaudio, ccscript, sipswitch) source
> > code.
> > 
> > Unfortunately, I was not able to find ANY usage of the ucc::queue in
> > these projects!
> > 
> > Does this mean that I do not know to search or queues are not used for
> > some reason?
> > 
> > A lot of thanks ahead.


-- 
            Dr.Leon M.Pollak
                Director
       PLR Information Systems Ltd.
Tel.:+972-98657670  |  POB 8130, H'Aomanut 9,
Fax.:+972-98657621  |  Poleg Industrial Zone,
Mob.:+972-544739246 |  Netanya, 42160, Israel.


From MAILER-DAEMON Sat Jun 05 11:13:00 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1OKv3T-0001ET-Vg
	for mharc-bug-commoncpp@gnu.org; Sat, 05 Jun 2010 11:13:00 -0400
Received: from [140.186.70.92] (port=57612 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1OKv3R-0001Ct-6c
	for bug-commoncpp@gnu.org; Sat, 05 Jun 2010 11:12:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <dyfet@gnutelephony.org>) id 1OKv3Q-0000hx-2g
	for bug-commoncpp@gnu.org; Sat, 05 Jun 2010 11:12:57 -0400
Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:53744)
	by eggs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <dyfet@gnutelephony.org>) id 1OKv3Q-0000hp-0f
	for bug-commoncpp@gnu.org; Sat, 05 Jun 2010 11:12:56 -0400
Received: from [108.25.51.154] (helo=[172.16.59.91])
	by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:CAMELLIA256-SHA:256)
	(Exim 4.68) (envelope-from <dyfet@gnutelephony.org>)
	id 1OKv3O-000EM4-Um; Sat, 05 Jun 2010 15:12:55 +0000
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 108.25.51.154
X-Report-Abuse-To: abuse@dyndns.com (see
	http://www.dyndns.com/services/mailhop/outbound_abuse.html for
	abuse reporting information)
X-MHO-User: U2FsdGVkX19heDj9tVOf/kDKVqn2q8k5
Message-ID: <4C0A6966.1040307@gnutelephony.org>
Date: Sat, 05 Jun 2010 11:12:38 -0400
From: David Sugar <dyfet@gnutelephony.org>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4
MIME-Version: 1.0
To: Leon Pollak <leonp@plris.com>
References: <201006031729.36868.leonp@plris.com>
	<4C07EBCD.2010204@gnutelephony.org>
	<201006040338.00809.leonp@plris.com>
In-Reply-To: <201006040338.00809.leonp@plris.com>
X-Enigmail-Version: 1.0.1
Content-Type: multipart/mixed; boundary="------------090802090805090707030200"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Cc: Bug Common C++ <bug-commoncpp@gnu.org>
Subject: Re: HowTo for queues
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 05 Jun 2010 15:12:58 -0000

This is a multi-part message in MIME format.
--------------090802090805090707030200
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

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 reference counted object.  However, if you want a resuable
pool of buffer objects, you would construct an object for your buffer
that is itself derived from ReusableObject (which is derived from
Object), and this is what you would then pass into the queue.

Hence maybe you would use something like:

class MyObject : public ReusableObject
{
public:
	char data[100];
};

static mempager datapool;

// we have a pool with a maximum allocation size of 100 objects...
static paged_reuse<MyObject> bufpool(&datapool, 100);

// and a fixed size stream buffer of referenced objects...
static queueof<MyObject> mycache(&datapool, 10);

// we have a cache for these 100 objects...

to post:

	// timeout to try
	MyObject *x = bufpool.get(100);
	
	// on error getting a new pool object...
	if(!x) ... we could allocate from datapool, throw, whatever...

	// we may also need to add x->retain(), it's been awhile....

	// make sure it survives cache...
	String::set(x->data, 100, "something");
	
	// timeout possible...
	if(!mycache.post(x, 100)) ... failed to post ...

to get an object from the queue:

	// with a timeout...
	MyObject *x = mycache.lifo(100);

	if(!x) ... we didn't get anything before timer expired...

	printf("data %s\n", x->data);

	// release object back to reuse pool...
	bufpool::release(x)

What is confusing is that paged_reuse and the related PagerReuse is in
vector.h.  It probably should be in thread.h :).  And yes, this
particular construction is unique to ucommon, and particularly it's
preference for reference counted objects, so I am sure the construction
of this is not at all obvious, but once it is seen it makes complete
sense.  It is a reason we need more examples...

Both paged_reuse and queueof use conditionals to protect boundaries, and
with millisecond timeouts to give time limits waiting for resources
(such as an object released from another thread when empty, or for
another thread to pull data if the cache is full).

On 06/03/2010 08:38 PM, Leon Pollak wrote:
> 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 (which classes).
> B receives buffers, process them and returns to the pool.
> 
> Just, please, name the classes, i will try to understand how to use them...
> 
> Thanks again.
> 
> On Thursday June 3 2010, David Sugar wrote:
>> 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 event queue to buffer realtime Dialogic events to Bayonne
>> ones) had not been ported to the newer Bayonne codebase as yet.  So it
>> is quite possible there is nobody currently using the class.  I think if
>> this is true we should at least make sure there is some unit test code
>> coverage for queue.
>>
>> On 06/03/2010 10:29 AM, Leon Pollak wrote:
>>> Hello.
>>>
>>> I am a newbie here - sorry for stupid questions (but I am definitely not
>>> a newbie in RT programming - 16 years with RTEMS, pSOS and similar). I
>>> also hope that this is the correct place for such questions.
>>>
>>> I am trying to understand uCommon queues with the help of doxygen
>>> documentation and examples (bayonne, ccaudio, ccscript, sipswitch) source
>>> code.
>>>
>>> Unfortunately, I was not able to find ANY usage of the ucc::queue in
>>> these projects!
>>>
>>> Does this mean that I do not know to search or queues are not used for
>>> some reason?
>>>
>>> A lot of thanks ahead.
> 
> 

--------------090802090805090707030200
Content-Type: text/x-vcard; charset=utf-8;
 name="dyfet.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="dyfet.vcf"

begin:vcard
fn:David Sugar
n:Sugar;David
org:GNU Telephony
email;internet:dyfet@gnutelephony.org
tel;work:+1 609 465 5336
url:http://www.gnutelephony.org
version:2.1
end:vcard


--------------090802090805090707030200--


From MAILER-DAEMON Sat Jun 05 15:51:20 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1OKzOp-0006No-Ub
	for mharc-bug-commoncpp@gnu.org; Sat, 05 Jun 2010 15:51:19 -0400
Received: from [140.186.70.92] (port=49973 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1OKzOn-0006Nj-55
	for bug-commoncpp@gnu.org; Sat, 05 Jun 2010 15:51:18 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <leon.pollak@gmail.com>) id 1OKzOl-0002Od-M5
	for bug-commoncpp@gnu.org; Sat, 05 Jun 2010 15:51:17 -0400
Received: from mail-ww0-f41.google.com ([74.125.82.41]:46584)
	by eggs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <leon.pollak@gmail.com>) id 1OKzOl-0002OP-C3
	for bug-commoncpp@gnu.org; Sat, 05 Jun 2010 15:51:15 -0400
Received: by wwb24 with SMTP id 24so1867581wwb.0
	for <bug-commoncpp@gnu.org>; Sat, 05 Jun 2010 12:51:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:received:sender:from:to:subject:date
	:user-agent:cc:references:in-reply-to:mime-version:content-type
	:content-transfer-encoding:message-id;
	bh=auVNPe3s3v5j+BZVdoAMrUJOQPFGCBSSsn9u1Q4YuNA=;
	b=IUiXhqxe4fxEkBVRT+ko+NtSVxbytgidUxwpQNeWgjY7yiXKrUAbkpOuHlzilUqL/c
	3oaXZzwHU6c/nNz/E/ULOSQw/MP5eqLUXES1Ez5z1DGxgTkhNDwoMS/QgnXemwwQYxLm
	rSDEwswBGPccSBP8PuGq+TRyb07zbr1329iBs=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=sender:from:to:subject:date:user-agent:cc:references:in-reply-to
	:mime-version:content-type:content-transfer-encoding:message-id;
	b=XPlJEE41mkKm2Thkj3YkpCNDo5hkZxqS/DGcXEe2RJFcqfNPBJD6n6YTD0Md1K2694
	fNeuYa1v1K33KonS93sbbUZLzWBXypOXlJxJwaWOF3Xhjwo6BDfXaFLx3jIxhrJSfcy0
	gM/vvx36mPMWS9joKuAoJ8xnrjEyxyveDLTTQ=
Received: by 10.227.143.212 with SMTP id w20mr12348267wbu.107.1275767473017;
	Sat, 05 Jun 2010 12:51:13 -0700 (PDT)
Received: from leonp.plris.com (bzq-79-178-38-181.red.bezeqint.net
	[79.178.38.181])
	by mx.google.com with ESMTPS id n31sm21856361wba.21.2010.06.05.12.51.10
	(version=TLSv1/SSLv3 cipher=RC4-MD5);
	Sat, 05 Jun 2010 12:51:12 -0700 (PDT)
Sender: Leon Pollak <leon.pollak@gmail.com>
From: Leon Pollak <leonp@plris.com>
To: David Sugar <dyfet@gnutelephony.org>
Date: Sat, 5 Jun 2010 22:51:32 +0300
User-Agent: KMail/1.13.3 (Linux/2.6.33.4-95.fc13.x86_64; KDE/4.4.3; x86_64; ; )
References: <201006031729.36868.leonp@plris.com>
	<201006040338.00809.leonp@plris.com>
	<4C0A6966.1040307@gnutelephony.org>
In-Reply-To: <4C0A6966.1040307@gnutelephony.org>
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
Message-Id: <201006052251.33120.leonp@plris.com>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Cc: Bug Common C++ <bug-commoncpp@gnu.org>
Subject: Re: HowTo for queues
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 05 Jun 2010 19:51:18 -0000

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 is actually a reference count
> instance of a reference counted object.  However, if you want a resuable
> pool of buffer objects, you would construct an object for your buffer
> that is itself derived from ReusableObject (which is derived from
> Object), and this is what you would then pass into the queue.
> 
> Hence maybe you would use something like:
> 
> class MyObject : public ReusableObject
> {
> public:
> 	char data[100];
> };
> 
> static mempager datapool;
> 
> // we have a pool with a maximum allocation size of 100 objects...
> static paged_reuse<MyObject> bufpool(&datapool, 100);
> 
> // and a fixed size stream buffer of referenced objects...
> static queueof<MyObject> mycache(&datapool, 10);
> 
> // we have a cache for these 100 objects...
> 
> to post:
> 
> 	// timeout to try
> 	MyObject *x = bufpool.get(100);
> 
> 	// on error getting a new pool object...
> 	if(!x) ... we could allocate from datapool, throw, whatever...
> 
> 	// we may also need to add x->retain(), it's been awhile....
> 
> 	// make sure it survives cache...
> 	String::set(x->data, 100, "something");
> 
> 	// timeout possible...
> 	if(!mycache.post(x, 100)) ... failed to post ...
> 
> to get an object from the queue:
> 
> 	// with a timeout...
> 	MyObject *x = mycache.lifo(100);
> 
> 	if(!x) ... we didn't get anything before timer expired...
> 
> 	printf("data %s\n", x->data);
> 
> 	// release object back to reuse pool...
> 	bufpool::release(x)
Hello David,

And again thanks for the example.

It seems you were right - no use of the queue/queueof was not tried yet...:-)

1. I tried to compile the example you provided above. There is a problem with 
the second template parameter of queueof - it cannot be null-pointer according 
to my search in the internet. See for example 
http://stackoverflow.com/questions/1418019/casting-pointer-as-template-
argument-comeau-msvc-compile-gcc-fails

2. You declared all three objects as 'static', which, besides the problems 
with compilation also makes them invisible from the outside, no? This forces 
me to put both threads in the same file, which is not good for me.
What was your reason to declare them static?

Thanks.
-- 
Leon


From MAILER-DAEMON Sun Jun 06 12:22:37 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1OLIcP-0007fR-PK
	for mharc-bug-commoncpp@gnu.org; Sun, 06 Jun 2010 12:22:37 -0400
Received: from [140.186.70.92] (port=50924 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1OLIcM-0007fM-R5
	for bug-commoncpp@gnu.org; Sun, 06 Jun 2010 12:22:36 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <dyfet@gnutelephony.org>) id 1OLIcH-0002zG-Oc
	for bug-commoncpp@gnu.org; Sun, 06 Jun 2010 12:22:34 -0400
Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:54428)
	by eggs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <dyfet@gnutelephony.org>) id 1OLIcH-0002yt-MA
	for bug-commoncpp@gnu.org; Sun, 06 Jun 2010 12:22:29 -0400
Received: from [108.25.51.154] (helo=[172.16.59.91])
	by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:CAMELLIA256-SHA:256)
	(Exim 4.68) (envelope-from <dyfet@gnutelephony.org>)
	id 1OLIcF-000Mfy-UX; Sun, 06 Jun 2010 16:22:28 +0000
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 108.25.51.154
X-Report-Abuse-To: abuse@dyndns.com (see
	http://www.dyndns.com/services/mailhop/outbound_abuse.html for
	abuse reporting information)
X-MHO-User: U2FsdGVkX1/gibIwkWrTJCRu968iLBeR
Message-ID: <4C0BCB38.50209@gnutelephony.org>
Date: Sun, 06 Jun 2010 12:22:16 -0400
From: David Sugar <dyfet@gnutelephony.org>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4
MIME-Version: 1.0
To: Leon Pollak <leonp@plris.com>
References: <201006031729.36868.leonp@plris.com>
	<201006040338.00809.leonp@plris.com>
	<4C0A6966.1040307@gnutelephony.org>
	<201006052251.33120.leonp@plris.com>
In-Reply-To: <201006052251.33120.leonp@plris.com>
X-Enigmail-Version: 1.0.1
Content-Type: multipart/mixed; boundary="------------080805090308000906060807"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Cc: Bug Common C++ <bug-commoncpp@gnu.org>
Subject: Re: HowTo for queues - open issues resolved in 3.0.1
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 06 Jun 2010 16:22:36 -0000

This is a multi-part message in MIME format.
--------------080805090308000906060807
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

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 (linkage requirement issue).  Finally, I added an initial
unit test case, ucommonQueue (test/queue.cpp) which both demonstrates
the use case and validates at least some basic funcions of the current
implementation.  The unit test case code should be expanded upon to try
and identify any additional bugs or issues.

On 06/05/2010 03:51 PM, Leon Pollak wrote:
> 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 is actually a reference count
>> instance of a reference counted object.  However, if you want a resuable
>> pool of buffer objects, you would construct an object for your buffer
>> that is itself derived from ReusableObject (which is derived from
>> Object), and this is what you would then pass into the queue.
>>
>> Hence maybe you would use something like:
>>
>> class MyObject : public ReusableObject
>> {
>> public:
>> 	char data[100];
>> };
>>
>> static mempager datapool;
>>
>> // we have a pool with a maximum allocation size of 100 objects...
>> static paged_reuse<MyObject> bufpool(&datapool, 100);
>>
>> // and a fixed size stream buffer of referenced objects...
>> static queueof<MyObject> mycache(&datapool, 10);
>>
>> // we have a cache for these 100 objects...
>>
>> to post:
>>
>> 	// timeout to try
>> 	MyObject *x = bufpool.get(100);
>>
>> 	// on error getting a new pool object...
>> 	if(!x) ... we could allocate from datapool, throw, whatever...
>>
>> 	// we may also need to add x->retain(), it's been awhile....
>>
>> 	// make sure it survives cache...
>> 	String::set(x->data, 100, "something");
>>
>> 	// timeout possible...
>> 	if(!mycache.post(x, 100)) ... failed to post ...
>>
>> to get an object from the queue:
>>
>> 	// with a timeout...
>> 	MyObject *x = mycache.lifo(100);
>>
>> 	if(!x) ... we didn't get anything before timer expired...
>>
>> 	printf("data %s\n", x->data);
>>
>> 	// release object back to reuse pool...
>> 	bufpool::release(x)
> Hello David,
> 
> And again thanks for the example.
> 
> It seems you were right - no use of the queue/queueof was not tried yet...:-)
> 
> 1. I tried to compile the example you provided above. There is a problem with 
> the second template parameter of queueof - it cannot be null-pointer according 
> to my search in the internet. See for example 
> http://stackoverflow.com/questions/1418019/casting-pointer-as-template-
> argument-comeau-msvc-compile-gcc-fails
> 
> 2. You declared all three objects as 'static', which, besides the problems 
> with compilation also makes them invisible from the outside, no? This forces 
> me to put both threads in the same file, which is not good for me.
> What was your reason to declare them static?
> 
> Thanks.

--------------080805090308000906060807
Content-Type: text/x-vcard; charset=utf-8;
 name="dyfet.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="dyfet.vcf"

YmVnaW46dmNhcmQNCmZuOkRhdmlkIFN1Z2FyDQpuOlN1Z2FyO0RhdmlkDQpvcmc6R05VIFRl
bGVwaG9ueQ0KZW1haWw7aW50ZXJuZXQ6ZHlmZXRAZ251dGVsZXBob255Lm9yZw0KdGVsO3dv
cms6KzEgNjA5IDQ2NSA1MzM2DQp1cmw6aHR0cDovL3d3dy5nbnV0ZWxlcGhvbnkub3JnDQp2
ZXJzaW9uOjIuMQ0KZW5kOnZjYXJkDQoNCg==
--------------080805090308000906060807--


From MAILER-DAEMON Tue Jun 08 08:16:02 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1OLxis-0004fx-1D
	for mharc-bug-commoncpp@gnu.org; Tue, 08 Jun 2010 08:16:02 -0400
Received: from [140.186.70.92] (port=42066 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1OLxio-0004f7-Fg
	for bug-commoncpp@gnu.org; Tue, 08 Jun 2010 08:16:00 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <leonp@plris.com>) id 1OLxim-0007zU-Vu
	for bug-commoncpp@gnu.org; Tue, 08 Jun 2010 08:15:58 -0400
Received: from 212.199.10.23.static.012.net.il ([212.199.10.23]:33634
	helo=plris.com) by eggs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <leonp@plris.com>) id 1OLxil-0007ys-UW
	for bug-commoncpp@gnu.org; Tue, 08 Jun 2010 08:15:56 -0400
Received: by plris.com (Postfix, from userid 517)
	id 1B66BA8673; Tue,  8 Jun 2010 15:15:52 +0300 (IDT)
Received: from leonp.plris.com (unknown [192.168.50.57])
	by plris.com (Postfix) with ESMTP id A5DE7A8670;
	Tue,  8 Jun 2010 15:15:12 +0300 (IDT)
From: Leon Pollak <leonp@plris.com>
To: David Sugar <dyfet@gnutelephony.org>
Date: Tue, 8 Jun 2010 15:15:46 +0300
User-Agent: KMail/1.13.3 (Linux/2.6.33.5-112.fc13.x86_64; KDE/4.4.3; x86_64; ;
	)
References: <201006031729.36868.leonp@plris.com>
	<201006052251.33120.leonp@plris.com>
	<4C0BCB38.50209@gnutelephony.org>
In-Reply-To: <4C0BCB38.50209@gnutelephony.org>
X-KMail-Markup: true
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="Boundary-01=_yRjDMbp+zvjDjOM"
Content-Transfer-Encoding: 7bit
Message-Id: <201006081515.46651.leonp@plris.com>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Cc: Bug Common C++ <bug-commoncpp@gnu.org>
Subject: Re: HowTo for queues - open issues resolved in 3.0.1
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 08 Jun 2010 12:16:00 -0000

--Boundary-01=_yRjDMbp+zvjDjOM
Content-Type: text/plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: 7bit

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 to the constructor rather than in
> the template (linkage requirement issue).  Finally, I added an initial
> unit test case, ucommonQueue (test/queue.cpp) which both demonstrates
> the use case and validates at least some basic funcions of the current
> implementation.  The unit test case code should be expanded upon to try
> and identify any additional bugs or issues.
David,

I downloaded the SVN head - the problem 1 from the letter below still exists.
I also do not see that file queue.cpp is compiled by the tests.

May be I use incorrect SVN?
svn co svn://svn.sv.gnu.org/commoncpp/trunk/ucommon

Thanks.
> 
> On 06/05/2010 03:51 PM, Leon Pollak wrote:
> > 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 is actually a reference count
> >> instance of a reference counted object.  However, if you want a resuable
> >> pool of buffer objects, you would construct an object for your buffer
> >> that is itself derived from ReusableObject (which is derived from
> >> Object), and this is what you would then pass into the queue.
> >> 
> >> Hence maybe you would use something like:
> >> 
> >> class MyObject : public ReusableObject
> >> {
> >> 
> >> public:
> >> 	char data[100];
> >> 
> >> };
> >> 
> >> static mempager datapool;
> >> 
> >> // we have a pool with a maximum allocation size of 100 objects...
> >> static paged_reuse<MyObject> bufpool(&datapool, 100);
> >> 
> >> // and a fixed size stream buffer of referenced objects...
> >> static queueof<MyObject> mycache(&datapool, 10);
> >> 
> >> // we have a cache for these 100 objects...
> >> 
> >> to post:
> >> 	// timeout to try
> >> 	MyObject *x = bufpool.get(100);
> >> 	
> >> 	// on error getting a new pool object...
> >> 	if(!x) ... we could allocate from datapool, throw, whatever...
> >> 	
> >> 	// we may also need to add x->retain(), it's been awhile....
> >> 	
> >> 	// make sure it survives cache...
> >> 	String::set(x->data, 100, "something");
> >> 	
> >> 	// timeout possible...
> >> 	if(!mycache.post(x, 100)) ... failed to post ...
> >> 
> >> to get an object from the queue:
> >> 	// with a timeout...
> >> 	MyObject *x = mycache.lifo(100);
> >> 	
> >> 	if(!x) ... we didn't get anything before timer expired...
> >> 	
> >> 	printf("data %s\n", x->data);
> >> 	
> >> 	// release object back to reuse pool...
> >> 	bufpool::release(x)
> > 
> > Hello David,
> > 
> > And again thanks for the example.
> > 
> > It seems you were right - no use of the queue/queueof was not tried
> > yet...:-)
> > 
> > 1. I tried to compile the example you provided above. There is a problem
> > with the second template parameter of queueof - it cannot be
> > null-pointer according to my search in the internet. See for example
> > http://stackoverflow.com/questions/1418019/casting-pointer-as-template-
> > argument-comeau-msvc-compile-gcc-fails
> > 
> > 2. You declared all three objects as 'static', which, besides the
> > problems with compilation also makes them invisible from the outside,
> > no? This forces me to put both threads in the same file, which is not
> > good for me. What was your reason to declare them static?
> > 
> > Thanks.


-- 
            Dr.Leon M.Pollak
                Director
       PLR Information Systems Ltd.
Tel.:+972-98657670  |  POB 8130, H'Aomanut 9,
Fax.:+972-98657621  |  Poleg Industrial Zone,
Mob.:+972-544739246 |  Netanya, 42160, Israel.

--Boundary-01=_yRjDMbp+zvjDjOM
Content-Type: text/html;
  charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-=
html40/strict.dtd">
<html><head><meta name=3D"qrichtext" content=3D"1" /><style type=3D"text/cs=
s">
p, li { white-space: pre-wrap; }
</style></head><body style=3D" font-family:'Monospace'; font-size:8pt; font=
=2Dweight:400; font-style:normal;">
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On Sunday J=
une 6 2010, David Sugar wrote:</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; I have=
 added new create() methods to the reusable pool templates so it</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; can re=
turn pre-constructed (initialized) objects.  I also found a bug</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; intern=
al to queueof lifo method and changed the templates for queueof</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; and st=
ackof so that the pool is passed to the constructor rather than in</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; the te=
mplate (linkage requirement issue).  Finally, I added an initial</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; unit t=
est case, ucommonQueue (test/queue.cpp) which both demonstrates</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; the us=
e case and validates at least some basic funcions of the current</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; implem=
entation.  The unit test case code should be expanded upon to try</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; and id=
entify any additional bugs or issues.</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">David,</p>
<p style=3D"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-u=
ser-state:0;"></p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">I downloade=
d the SVN head - the problem 1 from the letter below still exists.</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">I also do n=
ot see that file queue.cpp is compiled by the tests.</p>
<p style=3D"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-u=
ser-state:0;"></p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">May be I us=
e incorrect SVN?</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=
=3D" font-family:'Courier New,courier';">svn co svn://svn.sv.gnu.org/common=
cpp/trunk/ucommon</span></p>
<p style=3D"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-u=
ser-state:0;"></p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Thanks.</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; </p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; On 06/=
05/2010 03:51 PM, Leon Pollak wrote:</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt; O=
n Saturday June 5 2010, David Sugar wrote:</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; First, the queue core class can use a reusable pool, but this is for</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; internal management of it's own pointers.  The queue is passed an object=
</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; to post into it that is derived from &quot;Object&quot;, which are refer=
ence</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; counted.  Hence, existing on the queue is actually a reference count</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; instance of a reference counted object.  However, if you want a resuable=
</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; pool of buffer objects, you would construct an object for your buffer</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; that is itself derived from ReusableObject (which is derived from</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; Object), and this is what you would then pass into the queue.</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; </p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; Hence maybe you would use something like:</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; </p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; class MyObject : public ReusableObject</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; {</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; </p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; public:</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; 	char data[100];</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; </p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; };</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; </p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; static mempager datapool;</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; </p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; // we have a pool with a maximum allocation size of 100 objects...</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; static paged_reuse&lt;MyObject&gt; bufpool(&amp;datapool, 100);</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; </p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; // and a fixed size stream buffer of referenced objects...</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; static queueof&lt;MyObject&gt; mycache(&amp;datapool, 10);</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; </p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; // we have a cache for these 100 objects...</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; </p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; to post:</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; 	// timeout to try</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; 	MyObject *x =3D bufpool.get(100);</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; 	</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; 	// on error getting a new pool object...</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; 	if(!x) ... we could allocate from datapool, throw, whatever...</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; 	</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; 	// we may also need to add x-&gt;retain(), it's been awhile....</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; 	</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; 	// make sure it survives cache...</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; 	String::set(x-&gt;data, 100, &quot;something&quot;);</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; 	</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; 	// timeout possible...</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; 	if(!mycache.post(x, 100)) ... failed to post ...</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; </p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; to get an object from the queue:</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; 	// with a timeout...</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; 	MyObject *x =3D mycache.lifo(100);</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; 	</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; 	if(!x) ... we didn't get anything before timer expired...</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; 	</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; 	printf(&quot;data %s\n&quot;, x-&gt;data);</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; 	</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; 	// release object back to reuse pool...</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt;&g=
t; 	bufpool::release(x)</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt; <=
/p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt; H=
ello David,</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt; <=
/p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt; A=
nd again thanks for the example.</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt; <=
/p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt; I=
t seems you were right - no use of the queue/queueof was not tried</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt; y=
et...:-)</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt; <=
/p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt; 1=
=2E I tried to compile the example you provided above. There is a problem</=
p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt; w=
ith the second template parameter of queueof - it cannot be</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt; n=
ull-pointer according to my search in the internet. See for example</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt; h=
ttp://stackoverflow.com/questions/1418019/casting-pointer-as-template-</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt; a=
rgument-comeau-msvc-compile-gcc-fails</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt; <=
/p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt; 2=
=2E You declared all three objects as 'static', which, besides the</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt; p=
roblems with compilation also makes them invisible from the outside,</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt; n=
o? This forces me to put both threads in the same file, which is not</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt; g=
ood for me. What was your reason to declare them static?</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt; <=
/p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt; T=
hanks.</p>
<p style=3D"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-u=
ser-state:0;"></p>
<p style=3D"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-u=
ser-state:0;"></p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">-- </p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0Dr.Leon M.Pollak</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0 =A0Director</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">=A0=A0=A0=
=A0 =A0=A0PLR Information Systems Ltd.</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Tel.:+972-9=
8657670=A0=A0|=A0=A0POB 8130, H'Aomanut 9,</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Fax.:+972-9=
8657621=A0=A0|=A0=A0Poleg Industrial Zone,</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Mob.:+972-5=
44739246=A0|=A0=A0Netanya, 42160, Israel.</p>
<p style=3D"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-u=
ser-state:0;"></p></body></html>
--Boundary-01=_yRjDMbp+zvjDjOM--


From MAILER-DAEMON Tue Jun 08 09:59:02 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1OLzKY-0005jF-CT
	for mharc-bug-commoncpp@gnu.org; Tue, 08 Jun 2010 09:59:02 -0400
Received: from [140.186.70.92] (port=47498 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1OLzKN-0005Vl-9f
	for bug-commoncpp@gnu.org; Tue, 08 Jun 2010 09:58:59 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <leonp@plris.com>) id 1OLzJh-0002Br-Gr
	for bug-commoncpp@gnu.org; Tue, 08 Jun 2010 09:58:14 -0400
Received: from 212.199.10.23.static.012.net.il ([212.199.10.23]:47357
	helo=plris.com) by eggs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <leonp@plris.com>) id 1OLzJh-0002At-6o
	for bug-commoncpp@gnu.org; Tue, 08 Jun 2010 09:58:09 -0400
Received: by plris.com (Postfix, from userid 517)
	id C94FFA866D; Tue,  8 Jun 2010 16:58:06 +0300 (IDT)
Received: from leonp.plris.com (unknown [192.168.50.57])
	by plris.com (Postfix) with ESMTP id 35A63A8344;
	Tue,  8 Jun 2010 16:57:38 +0300 (IDT)
From: Leon Pollak <leonp@plris.com>
To: David Sugar <dyfet@gnutelephony.org>
Date: Tue, 8 Jun 2010 16:58:12 +0300
User-Agent: KMail/1.13.3 (Linux/2.6.33.5-112.fc13.x86_64; KDE/4.4.3; x86_64; ;
	)
References: <201006031729.36868.leonp@plris.com>
	<4C0BCB38.50209@gnutelephony.org>
	<201006081515.46651.leonp@plris.com>
In-Reply-To: <201006081515.46651.leonp@plris.com>
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
Message-Id: <201006081658.12373.leonp@plris.com>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
Cc: Bug Common C++ <bug-commoncpp@gnu.org>
Subject: Please, discard my previous message
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 08 Jun 2010 13:59:00 -0000

Sorry, David discard my previous message!

-- 
            Dr.Leon M.Pollak
                Director
       PLR Information Systems Ltd.
Tel.:+972-98657670  |  POB 8130, H'Aomanut 9,
Fax.:+972-98657621  |  Poleg Industrial Zone,
Mob.:+972-544739246 |  Netanya, 42160, Israel.


