mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-19 16:50:40 +00:00
Fix the bug in iothread handler, the event should be read out so that the next epoll_wait not return directly as the fd can still readable. Tracked-On: #8181 Signed-off-by: Conghui <conghui.chen@intel.com> Acked-by: Wang, Yu1 <yu1.wang@intel.com>
21 lines
358 B
C
21 lines
358 B
C
/* Copyright (C) 2022 Intel Corporation.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*
|
|
*/
|
|
|
|
#ifndef _iothread_CTX_H_
|
|
#define _iothread_CTX_H_
|
|
|
|
struct iothread_mevent {
|
|
void (*run)(void *);
|
|
void *arg;
|
|
int fd;
|
|
};
|
|
int iothread_add(int fd, struct iothread_mevent *aevt);
|
|
int iothread_del(int fd);
|
|
int iothread_init(void);
|
|
void iothread_deinit(void);
|
|
|
|
#endif
|