mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-23 01:51:55 -06:00
util: Use real functions for thread-posix QemuRecMutex
Move the declarations from thread-win32.h into thread.h and remove the macro redirection from thread-posix.h. This will be required by following cleanups. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20210614233143.1221879-4-richard.henderson@linaro.org>
This commit is contained in:
parent
6c06aca036
commit
4b193bb798
4 changed files with 26 additions and 13 deletions
|
@ -5,10 +5,6 @@
|
|||
#include <semaphore.h>
|
||||
|
||||
typedef QemuMutex QemuRecMutex;
|
||||
#define qemu_rec_mutex_destroy qemu_mutex_destroy
|
||||
#define qemu_rec_mutex_lock_impl qemu_mutex_lock_impl
|
||||
#define qemu_rec_mutex_trylock_impl qemu_mutex_trylock_impl
|
||||
#define qemu_rec_mutex_unlock qemu_mutex_unlock
|
||||
|
||||
struct QemuMutex {
|
||||
pthread_mutex_t lock;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue