ipc: Init connection mutex

This commit is contained in:
Mateo de Mayo 2022-05-21 23:57:55 -03:00
parent dd802f7fef
commit bcac379cf5

View file

@ -303,6 +303,8 @@ ipc_instance_create(struct xrt_instance_info *i_info, struct xrt_instance **out_
ii->ipc_c.imc.socket_fd = -1;
ii->ipc_c.ism_handle = XRT_SHMEM_HANDLE_INVALID;
os_mutex_init(&ii->ipc_c.mutex);
if (!ipc_connect(&ii->ipc_c)) {
IPC_ERROR((&ii->ipc_c),
"Failed to connect to monado service process\n\n"
@ -398,7 +400,5 @@ ipc_instance_create(struct xrt_instance_info *i_info, struct xrt_instance **out_
*out_xinst = &ii->base;
os_mutex_init(&ii->ipc_c.mutex);
return XRT_SUCCESS;
}