You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
595 B
32 lines
595 B
/*
|
|
* 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 <utils/RefBase.h>
|
|
|
|
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
|