From: Simon Wright <simon@pushface.org>
Subject: Re: copy constructor for sockets
Date: 25 May 2004 05:53:14 +0100
Date: 2004-05-25T05:53:14+01:00 [thread overview]
Message-ID: <x7vfz9pglad.fsf@smaug.pushface.org> (raw)
In-Reply-To: YCfsc.14724$hi6.1496545@attbi_s53
tmoran@acm.org writes:
> >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.
Of course, thanks Tom & Matt!
next prev parent reply other threads:[~2004-05-25 4:53 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
2004-05-25 4:53 ` Simon Wright [this message]
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