mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
qemu-thread: add API for joinable threads
Split from Jan's original qemu-thread-posix.c patch. No semantic change, just introduce the new API that POSIX and Win32 implementations will conform to. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
d396a657ba
commit
cf21871479
6 changed files with 21 additions and 11 deletions
|
@ -243,10 +243,12 @@ static inline void qemu_thread_init(void)
|
|||
|
||||
void qemu_thread_create(QemuThread *thread,
|
||||
void *(*start_routine)(void *),
|
||||
void *arg)
|
||||
void *arg, int mode)
|
||||
{
|
||||
HANDLE hThread;
|
||||
|
||||
assert(mode == QEMU_THREAD_DETACHED);
|
||||
|
||||
struct QemuThreadData *data;
|
||||
qemu_thread_init();
|
||||
data = g_malloc(sizeof *data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue