comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: copy constructor for sockets
Date: Mon, 24 May 2004 05:20:56 GMT
Date: 2004-05-24T05:20:56+00:00	[thread overview]
Message-ID: <YCfsc.14724$hi6.1496545@attbi_s53> (raw)
In-Reply-To: x7v8yfi77do.fsf@smaug.pushface.org

>I have it stuck in my head that Finalize can get called more than
>once. Which would make a mockery of (simple-minded) reference counting
  If each copy of the socket points to the single shared ref count
(Rep_Type here), then Finalize may be called as often as you want on the
socket:  the first time it's called it decrements the shared reference
count, frees the Rep_Type if the count is now zero, and nulls the socket's
pointer.  Subsequent calls on the same socket see that the pointer is null
and there's nothing to do.



  reply	other threads:[~2004-05-24  5:20 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-22 10:19 copy constructor for sockets Andrew Carroll
2004-05-22 11:55 ` Simon Wright
2004-05-22 18:39   ` tmoran
2004-05-23 21:04   ` Matthew Heaney
2004-05-24  7:13     ` Marius Amado Alves
2004-05-24  3:23       ` Matthew Heaney
2004-05-24  4:53         ` Simon Wright
2004-05-24  5:20           ` tmoran [this message]
2004-05-25  4:53             ` Simon Wright
2004-05-24 12:36           ` Matthew Heaney
2004-05-25 21:50           ` Robert I. Eachus
  -- strict thread matches above, loose matches on Subject: below --
2004-05-22 21:18 Andrew Carroll
2004-05-22 21:46 ` tmoran
2004-05-23 11:21   ` Simon Wright
2004-05-24 18:26     ` tmoran
2004-05-25  5:10       ` Simon Wright
2004-05-25  6:37         ` tmoran
2004-05-23  9:43 ` Mark Lorenzen
2004-05-23 11:27 ` Simon Wright
2004-05-24 11:28 Andrew Carroll
2004-05-25  5:29 ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox