IOC mediator: fix IOC mediator blocks acrn-dm shutdown flow

This patch resolves IOC mediator deinit function is blocked due to IOC mediator
core thread enters into sleep by epoll_wait, then pthread_join cannot return.

Trigger an event to wakeup core thread when IOC mediator deinit is invoked.

Signed-off-by: Yuan Liu <yuan1.liu@intel.com>
Reviewed-by: Liang Yang <liang3.yang@intel.com>
Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
Yuan Liu
2018-07-12 14:23:50 +08:00
committed by lijinxia
parent 159d57b703
commit b7436272e7
2 changed files with 8 additions and 2 deletions

View File

@@ -659,7 +659,8 @@ enum ioc_event_type {
IOC_E_RAM_REFRESH,
IOC_E_HB_INACTIVE,
IOC_E_SHUTDOWN,
IOC_E_RESUME
IOC_E_RESUME,
IOC_E_KNOCK,
};
/*