Signed-off-by: Rafael Fonseca <r4f4rfs@xxxxxxxxx> --- src/openvz/openvz_conf.h | 2 +- src/openvz/openvz_driver.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openvz/openvz_conf.h b/src/openvz/openvz_conf.h index 9892f39481..1680227e95 100644 --- a/src/openvz/openvz_conf.h +++ b/src/openvz/openvz_conf.h @@ -37,7 +37,7 @@ #define VZCTL_BRIDGE_MIN_VERSION ((3 * 1000 * 1000) + (0 * 1000) + 22 + 1) struct openvz_driver { - virMutex lock; + GMutex lock; virCapsPtr caps; virDomainXMLOptionPtr xmlopt; diff --git a/src/openvz/openvz_driver.c b/src/openvz/openvz_driver.c index 1a189dbbe7..36a22a4e88 100644 --- a/src/openvz/openvz_driver.c +++ b/src/openvz/openvz_driver.c @@ -67,12 +67,12 @@ static int openvzGetVEStatus(virDomainObjPtr vm, int *status, int *reason); static void openvzDriverLock(struct openvz_driver *driver) { - virMutexLock(&driver->lock); + g_mutex_lock(&driver->lock); } static void openvzDriverUnlock(struct openvz_driver *driver) { - virMutexUnlock(&driver->lock); + g_mutex_unlock(&driver->lock); } struct openvz_driver ovz_driver; -- 2.25.2