mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
virDomainObjSignal: drop this function
There are multiple consumers for the domain condition and we should always wake them all. Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
5c48618f11
commit
6b278f3ad6
@ -2661,13 +2661,6 @@ virDomainObjEndAPI(virDomainObjPtr *vm)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
virDomainObjSignal(virDomainObjPtr vm)
|
|
||||||
{
|
|
||||||
virCondSignal(&vm->cond);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
virDomainObjBroadcast(virDomainObjPtr vm)
|
virDomainObjBroadcast(virDomainObjPtr vm)
|
||||||
{
|
{
|
||||||
|
@ -2443,7 +2443,6 @@ void virDomainObjEndAPI(virDomainObjPtr *vm);
|
|||||||
bool virDomainObjTaint(virDomainObjPtr obj,
|
bool virDomainObjTaint(virDomainObjPtr obj,
|
||||||
virDomainTaintFlags taint);
|
virDomainTaintFlags taint);
|
||||||
|
|
||||||
void virDomainObjSignal(virDomainObjPtr vm);
|
|
||||||
void virDomainObjBroadcast(virDomainObjPtr vm);
|
void virDomainObjBroadcast(virDomainObjPtr vm);
|
||||||
int virDomainObjWait(virDomainObjPtr vm);
|
int virDomainObjWait(virDomainObjPtr vm);
|
||||||
int virDomainObjWaitUntil(virDomainObjPtr vm,
|
int virDomainObjWaitUntil(virDomainObjPtr vm,
|
||||||
|
@ -412,7 +412,6 @@ virDomainObjParseNode;
|
|||||||
virDomainObjSetDefTransient;
|
virDomainObjSetDefTransient;
|
||||||
virDomainObjSetMetadata;
|
virDomainObjSetMetadata;
|
||||||
virDomainObjSetState;
|
virDomainObjSetState;
|
||||||
virDomainObjSignal;
|
|
||||||
virDomainObjTaint;
|
virDomainObjTaint;
|
||||||
virDomainObjUpdateModificationImpact;
|
virDomainObjUpdateModificationImpact;
|
||||||
virDomainObjWait;
|
virDomainObjWait;
|
||||||
|
@ -1004,7 +1004,7 @@ qemuProcessHandleBlockJob(qemuMonitorPtr mon ATTRIBUTE_UNUSED,
|
|||||||
/* We have a SYNC API waiting for this event, dispatch it back */
|
/* We have a SYNC API waiting for this event, dispatch it back */
|
||||||
diskPriv->blockJobType = type;
|
diskPriv->blockJobType = type;
|
||||||
diskPriv->blockJobStatus = status;
|
diskPriv->blockJobStatus = status;
|
||||||
virDomainObjSignal(vm);
|
virDomainObjBroadcast(vm);
|
||||||
} else {
|
} else {
|
||||||
/* there is no waiting SYNC API, dispatch the update to a thread */
|
/* there is no waiting SYNC API, dispatch the update to a thread */
|
||||||
if (VIR_ALLOC(processEvent) < 0)
|
if (VIR_ALLOC(processEvent) < 0)
|
||||||
@ -1500,7 +1500,7 @@ qemuProcessHandleSpiceMigrated(qemuMonitorPtr mon ATTRIBUTE_UNUSED,
|
|||||||
}
|
}
|
||||||
|
|
||||||
priv->job.spiceMigrated = true;
|
priv->job.spiceMigrated = true;
|
||||||
virDomainObjSignal(vm);
|
virDomainObjBroadcast(vm);
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
virObjectUnlock(vm);
|
virObjectUnlock(vm);
|
||||||
|
Loading…
Reference in New Issue
Block a user