Re: [Qemu-devel] [PATCH] libcacard: replace qemu thread primitives with glib ones

2014-04-28 Thread Peter Maydell
On 27 April 2014 17:26, Michael Tokarev m...@tls.msk.ru wrote: Replace QemuMutex with GMutex and QemuCond with GCond (with corresponding function changes), to make libcacard independent of qemu internal functions. --- a/libcacard/event.c +++ b/libcacard/event.c @@ -43,13 +43,13 @@

Re: [Qemu-devel] [PATCH] libcacard: replace qemu thread primitives with glib ones

2014-04-28 Thread Michael Tokarev
28.04.2014 14:19, Peter Maydell wrote: On 27 April 2014 17:26, Michael Tokarev m...@tls.msk.ru wrote: -static QemuMutex vevent_queue_lock; -static QemuCond vevent_queue_condition; +static GMutex vevent_queue_lock; +static GCond vevent_queue_condition; void vevent_queue_init(void) { -

Re: [Qemu-devel] [PATCH] libcacard: replace qemu thread primitives with glib ones

2014-04-28 Thread Michael Tokarev
28.04.2014 15:48, Michael Tokarev wrote: [] I've added a tiny (but hackish and fun) wrapper header for all this, and pushed whole thing into a branch on my site -- see http://git.corpit.ru/?p=qemu.git;a=shortlog;h=refs/heads/libcacard-standalone The wrapper is here:

[Qemu-devel] [PATCH] libcacard: replace qemu thread primitives with glib ones

2014-04-27 Thread Michael Tokarev
Replace QemuMutex with GMutex and QemuCond with GCond (with corresponding function changes), to make libcacard independent of qemu internal functions. After this step, none of libcacard internals use any qemu-provided symbols. Maybe it's a good idea to stop including qemu-common.h internally