From: Ian Jackson Subject: Re: [PATCH 15/15] libxl: New event generation API Date: Mon, 12 Dec 2011 11:40:20 +0000 Message-ID: <20197.59428.699013.507183@mariner.uk.xensource.com> References: <1323108621-22654-1-git-send-email-ian.jackson@eu.citrix.com> <1323108621-22654-16-git-send-email-ian.jackson@eu.citrix.com> <20194.22539.574524.956955@mariner.uk.xensource.com> <1323463293.20936.11.camel@dagon.hellion.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1323463293.20936.11.camel@dagon.hellion.org.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: "xen-devel@lists.xensource.com" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [Xen-devel] [PATCH 15/15] libxl: New event generation API"): > Stepping back a bit: Since the lock is recursive do we really need the > unlocked version? All the callers of event_check_unlocked (apart from > libxl_event_check) could call libxl_event_check instead. Well, we have to have an internal version because we don't want to call GC_INIT again, obviously. Since the callers all take the lock the internal version doesn't have to. It would be possible to have these functions pointlessly reacquire the lock, I guess, and rename it to "beforepoll_internal" etc. Ian.