From cbcfa0418f0c196afa765f5c9837b9344d1adcf3 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Mon, 12 Sep 2011 16:20:11 +0200 Subject: 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 --- oslib-win32.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'oslib-win32.c') diff --git a/oslib-win32.c b/oslib-win32.c index 5e3de7d..ce3021e 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(); +} -- cgit v1.1