/* * Copyright (c) Hisilicon Technologies Co., Ltd. 2019-2020. All rights reserved. * Description: NxLooper class * Author: NxPlayer software group * Create: 2019-07-15 */ #ifndef NXLOOPER_H #define NXLOOPER_H #include namespace android { class NxLooper : public RefBase { public: explicit NxLooper(int idx); void Init(); void WakeUp() const; void WakeDown() const; int Wait(int timeoutMs) const; protected: ~NxLooper() override; private: int m_eFd; int m_epFd; bool m_inited; int m_instIdx; /* instance number */ }; } #endif