From owner-freebsd-arch Wed Apr 3 23:40:20 2002 Delivered-To: freebsd-arch@freebsd.org Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by hub.freebsd.org (Postfix) with ESMTP id B603F37B41C for ; Wed, 3 Apr 2002 23:40:07 -0800 (PST) Received: from mail.ilrt.bris.ac.uk by dire.bris.ac.uk with SMTP-PRIV with ESMTP; Thu, 4 Apr 2002 08:40:03 +0100 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 3.16 #1) id 16t1pn-0002zQ-00; Thu, 04 Apr 2002 08:39:03 +0100 Date: Thu, 4 Apr 2002 08:39:03 +0100 (BST) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: freebsd-arch@freebsd.org Subject: Reference-counting API Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Lost the initial message, but as I recall the "consensus" was: - reference managing calls for refcounts that need a lock - do it by hand for structures that are protected by a mutex Might I suggest* that an API for the second set of calls would still be useful? They might be a bunch of trivial macros, but having explicit refcounting "calls" are: easier to find; document the use better (it's a refcount, but we hold a mutex on it already); easier to instrument if required. Cheers, jan * no, I don't have the patch -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 RFC822 jan.grant@bris.ac.uk Usenet: The separation of content AND presentation - simultaneously. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message