WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] Re: Error reporting capabilities for libxc

To: "Daniel P. Berrange" <berrange@xxxxxxxxxx>, "Anthony Liguori" <aliguori@xxxxxxxxxx>
Subject: RE: [Xen-devel] Re: Error reporting capabilities for libxc
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Mon, 23 Oct 2006 21:54:12 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 23 Oct 2006 13:55:09 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <3AAA99889D105740BE010EB6D5A5A3B202A3B1@xxxxxxxxxxxxxxxxxxxxxxxxxx><20061023180017.GE25795@xxxxxxxxxx> <453D1554.8000202@xxxxxxxxxx> <20061023192753.GG25795@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acb22X8CJstpQiYuROCMESpMPmNmKQAC4/7A
Thread-topic: [Xen-devel] Re: Error reporting capabilities for libxc
> One further issue I've thought of is that the __thread annotation does
> not provide any way to do cleanup when a thread exists. Fine if the
> per-thread variable is a simple scalar, but not so good if its a char
*
> since I think it'll leak memory. So I think I may have no choice by to
> re-write with pthread_getspecific(), since that allows registration
> of a cleanup function to free memory.

Do we actually need pointers? I'd much rather go with __thread.

Ian

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel