qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/6] Spread the use of QEMU threading & locking API
@ 2011-09-20 16:53 Jan Kiszka
  2011-09-20 16:53 ` [Qemu-devel] [PATCH 1/6] Enable joinable POSIX threads Jan Kiszka
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: Jan Kiszka @ 2011-09-20 16:53 UTC (permalink / raw)
  To: Anthony Liguori, qemu-devel
  Cc: Kevin Wolf, Paolo Bonzini, Andreas Färber

This adds two missing features to our QEMU threading and locking
abstractions, qemu_thread_join and qemu_cond_timedwait, and then
converts compat AIO, compatfd, and several audio subsystems. This not
only saves a few lines of code, it also allows to apply certain thread
and lock parameters centrally which is specifically important when
using SCHED_FIFO.

Note that patch 6 is untested. Am I right that the other threads
coreaudioVoiceOut::mutex addresses are created by the coreaudio core?
Just curious.

Furthermore note that the changes to posix-aio-compat.c depend on
patches in Kevin's latest pull request.

CC: Andreas Färber <andreas.faerber@web.de>
CC: Kevin Wolf <kwolf@redhat.com>
CC: malc <av1474@comtv.ru>

Jan Kiszka (6):
  Enable joinable POSIX threads
  Introduce qemu_cond_timedwait
  Switch POSIX compat AIO to QEMU abstractions
  Switch compatfd to QEMU thread
  audio: Use QEMU threads & synchronization
  audio: Switch coreaudio to QemuMutex

 audio/audio_pt_int.c    |  167 ++---------------------------------------------
 audio/audio_pt_int.h    |   45 +++++++++----
 audio/coreaudio.c       |   56 ++--------------
 audio/esdaudio.c        |   92 +++++++-------------------
 audio/paaudio.c         |   84 +++++++----------------
 compatfd.c              |   16 +----
 cpus.c                  |    6 +-
 hw/ccid-card-emulated.c |    5 +-
 posix-aio-compat.c      |  115 +++++++++-----------------------
 qemu-thread-posix.c     |   53 ++++++++++++++-
 qemu-thread-posix.h     |    3 +
 qemu-thread-win32.c     |   20 +++++-
 qemu-thread.h           |    9 ++-
 ui/vnc-jobs-async.c     |    2 +-
 14 files changed, 219 insertions(+), 454 deletions(-)

-- 
1.7.3.4

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2011-09-26  8:06 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-20 16:53 [Qemu-devel] [PATCH 0/6] Spread the use of QEMU threading & locking API Jan Kiszka
2011-09-20 16:53 ` [Qemu-devel] [PATCH 1/6] Enable joinable POSIX threads Jan Kiszka
2011-09-21  7:16   ` Paolo Bonzini
2011-09-21 13:40     ` Kevin Wolf
2011-09-21 13:38       ` Paolo Bonzini
2011-09-20 16:53 ` [Qemu-devel] [PATCH 2/6] Introduce qemu_cond_timedwait Jan Kiszka
2011-09-20 18:22   ` Paolo Bonzini
2011-09-20 19:02     ` [Qemu-devel] [PATCH v2 2/6] Introduce qemu_cond_timedwait for POSIX Jan Kiszka
2011-09-20 16:53 ` [Qemu-devel] [PATCH 3/6] Switch POSIX compat AIO to QEMU abstractions Jan Kiszka
2011-09-21 13:57   ` Kevin Wolf
2011-09-21 14:02     ` Jan Kiszka
2011-09-21 14:11       ` Kevin Wolf
2011-09-20 16:53 ` [Qemu-devel] [PATCH 4/6] Switch compatfd to QEMU thread Jan Kiszka
2011-09-20 16:53 ` [Qemu-devel] [PATCH 5/6] audio: Use QEMU threads & synchronization Jan Kiszka
2011-09-20 16:53 ` [Qemu-devel] [PATCH 6/6] audio: Switch coreaudio to QemuMutex Jan Kiszka
2011-09-26  7:58   ` Andreas Färber
2011-09-26  8:06     ` Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).