|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH] coroutine: Fix win32 variant for older mingw32 compilers |
Date: | Wed, 21 Nov 2012 15:08:16 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1 |
Il 21/11/2012 15:00, Jan Kiszka ha scritto: > + if (!TlsGetValue(current_tls_index)) { > + leader = g_malloc0(sizeof(*leader)); > + leader->fiber = ConvertThreadToFiber(NULL); > + TlsSetValue(current_tls_index, &leader->base); > } Leaking leader is a bit bad, but it looks ok for 1.3. For 1.4 we really should bring back a portable solution for TLS that includes statically-allocated data. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |