mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-30 13:31:52 -06:00
rfifolock: no need to get thread identifier when nesting
Signed-off-by: Changlong Xie <xiecl.fnst@cn.fujitsu.com> Reviewed-by: Denis V. Lunev <den@openvz.org> Message-id: 1462874348-32396-1-git-send-email-xiecl.fnst@cn.fujitsu.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
70f87e0f0a
commit
de3e15a705
1 changed files with 1 additions and 1 deletions
|
@ -58,9 +58,9 @@ void rfifolock_lock(RFifoLock *r)
|
||||||
}
|
}
|
||||||
qemu_cond_wait(&r->cond, &r->lock);
|
qemu_cond_wait(&r->cond, &r->lock);
|
||||||
}
|
}
|
||||||
|
qemu_thread_get_self(&r->owner_thread);
|
||||||
}
|
}
|
||||||
|
|
||||||
qemu_thread_get_self(&r->owner_thread);
|
|
||||||
r->nesting++;
|
r->nesting++;
|
||||||
qemu_mutex_unlock(&r->lock);
|
qemu_mutex_unlock(&r->lock);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue