diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2011-09-12 16:20:11 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2011-12-22 11:53:58 +0100 |
commit | cbcfa0418f0c196afa765f5c9837b9344d1adcf3 (patch) | |
tree | d6d9700577d061ddde7e7bf860a72b0de9a2aaed /oslib-win32.c | |
parent | d9a73806585fd89f75f0c411839151863dac7f61 (diff) |
link the main loop and its dependencies into the tools
Using the main loop code from QEMU enables tools to operate fully
asynchronously. Advantages include better Windows portability (for some
definition of portability) over glib's.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'oslib-win32.c')
-rw-r--r-- | oslib-win32.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/oslib-win32.c b/oslib-win32.c index 5e3de7dc8a..ce3021e6c7 100644 --- a/oslib-win32.c +++ b/oslib-win32.c @@ -118,3 +118,8 @@ int qemu_gettimeofday(qemu_timeval *tp) Do not set errno on error. */ return 0; } + +int qemu_get_thread_id(void) +{ + return GetCurrentThreadId(); +} |