[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.