mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-03 21:56:06 +00:00
ipc: Init connection mutex
This commit is contained in:
parent
dd802f7fef
commit
bcac379cf5
|
@ -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.imc.socket_fd = -1;
|
||||||
ii->ipc_c.ism_handle = XRT_SHMEM_HANDLE_INVALID;
|
ii->ipc_c.ism_handle = XRT_SHMEM_HANDLE_INVALID;
|
||||||
|
|
||||||
|
os_mutex_init(&ii->ipc_c.mutex);
|
||||||
|
|
||||||
if (!ipc_connect(&ii->ipc_c)) {
|
if (!ipc_connect(&ii->ipc_c)) {
|
||||||
IPC_ERROR((&ii->ipc_c),
|
IPC_ERROR((&ii->ipc_c),
|
||||||
"Failed to connect to monado service process\n\n"
|
"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;
|
*out_xinst = &ii->base;
|
||||||
|
|
||||||
os_mutex_init(&ii->ipc_c.mutex);
|
|
||||||
|
|
||||||
return XRT_SUCCESS;
|
return XRT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue