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
|
||||
virDomainObjBroadcast(virDomainObjPtr vm)
|
||||
{
|
||||
|
@ -2443,7 +2443,6 @@ void virDomainObjEndAPI(virDomainObjPtr *vm);
|
||||
bool virDomainObjTaint(virDomainObjPtr obj,
|
||||
virDomainTaintFlags taint);
|
||||
|
||||
void virDomainObjSignal(virDomainObjPtr vm);
|
||||
void virDomainObjBroadcast(virDomainObjPtr vm);
|
||||
int virDomainObjWait(virDomainObjPtr vm);
|
||||
int virDomainObjWaitUntil(virDomainObjPtr vm,
|
||||
|
@ -412,7 +412,6 @@ virDomainObjParseNode;
|
||||
virDomainObjSetDefTransient;
|
||||
virDomainObjSetMetadata;
|
||||
virDomainObjSetState;
|
||||
virDomainObjSignal;
|
||||
virDomainObjTaint;
|
||||
virDomainObjUpdateModificationImpact;
|
||||
virDomainObjWait;
|
||||
|
@ -1004,7 +1004,7 @@ qemuProcessHandleBlockJob(qemuMonitorPtr mon ATTRIBUTE_UNUSED,
|
||||
/* We have a SYNC API waiting for this event, dispatch it back */
|
||||
diskPriv->blockJobType = type;
|
||||
diskPriv->blockJobStatus = status;
|
||||
virDomainObjSignal(vm);
|
||||
virDomainObjBroadcast(vm);
|
||||
} else {
|
||||
/* there is no waiting SYNC API, dispatch the update to a thread */
|
||||
if (VIR_ALLOC(processEvent) < 0)
|
||||
@ -1500,7 +1500,7 @@ qemuProcessHandleSpiceMigrated(qemuMonitorPtr mon ATTRIBUTE_UNUSED,
|
||||
}
|
||||
|
||||
priv->job.spiceMigrated = true;
|
||||
virDomainObjSignal(vm);
|
||||
virDomainObjBroadcast(vm);
|
||||
|
||||
cleanup:
|
||||
virObjectUnlock(vm);
|
||||
|
Loading…
Reference in New Issue
Block a user