mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
qemu-thread: Let qemu_thread_is_self() return bool
qemu_cpu_is_self(), passing the return value through, will later be adapted to return bool as well. Signed-off-by: Andreas Färber <afaerber@suse.de> Reviewed-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
02d2bd5d57
commit
2d797b6520
3 changed files with 4 additions and 3 deletions
|
@ -151,7 +151,7 @@ void qemu_thread_get_self(QemuThread *thread)
|
|||
thread->thread = pthread_self();
|
||||
}
|
||||
|
||||
int qemu_thread_is_self(QemuThread *thread)
|
||||
bool qemu_thread_is_self(QemuThread *thread)
|
||||
{
|
||||
return pthread_equal(pthread_self(), thread->thread);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue