提交 bb582795 编写于 作者: N Nikolay Shirokovskiy 提交者: Daniel P. Berrange

virConnectCloseCallbackDataDispose: remove unnecessary locks

We don't need locks in dispose functions as they can only
be run in one thread for given object.
上级 fa8c1645
......@@ -186,13 +186,7 @@ void virConnectCloseCallbackDataReset(virConnectCloseCallbackDataPtr close)
static void
virConnectCloseCallbackDataDispose(void *obj)
{
virConnectCloseCallbackDataPtr cb = obj;
virObjectLock(cb);
virConnectCloseCallbackDataReset(cb);
virObjectUnlock(cb);
virConnectCloseCallbackDataReset(obj);
}
void virConnectCloseCallbackDataRegister(virConnectCloseCallbackDataPtr close,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册