mirror of https://github.com/xemu-project/xemu.git
who needs this lock
This commit is contained in:
parent
dd34dda3c6
commit
5a7e1e6532
|
@ -3594,6 +3594,7 @@ static void pgraph_context_switch(NV2AState *d, unsigned int channel_id)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void pgraph_wait_fifo_access(NV2AState *d) {
|
static void pgraph_wait_fifo_access(NV2AState *d) {
|
||||||
|
if (d->pgraph.fifo_access) return;
|
||||||
qemu_mutex_lock(&d->pgraph.lock);
|
qemu_mutex_lock(&d->pgraph.lock);
|
||||||
while (!d->pgraph.fifo_access) {
|
while (!d->pgraph.fifo_access) {
|
||||||
qemu_cond_wait(&d->pgraph.fifo_access_cond, &d->pgraph.lock);
|
qemu_cond_wait(&d->pgraph.fifo_access_cond, &d->pgraph.lock);
|
||||||
|
|
Loading…
Reference in New Issue