📄 umc_avs_dec_thread.h
字号:
/*
//
// INTEL CORPORATION PROPRIETARY INFORMATION
// This software is supplied under the terms of a license agreement or
// nondisclosure agreement with Intel Corporation and may not be copied
// or disclosed except in accordance with the terms of that agreement.
// Copyright (c) 2007 Intel Corporation. All Rights Reserved.
//
//
*/
#ifndef __UMC_AVS_DEC_THREAD_H
#define __UMC_AVS_DEC_THREAD_H
#include "ippdefs.h"
#include "umc_thread.h"
#include "umc_structures.h"
#include "umc_avs_dec_context.h"
namespace UMC
{
// forward declaration of used classes
class AVSFussionCore;
class Event;
class AVSThread : public Thread
{
public:
// Constructor
AVSThread(void);
// Destructor
virtual
~AVSThread(void);
// Initialize the object
Status Init(AVSFussionCore *pCore, Ipp32s iNumber);
// Close the object and release all resources
Status Close(void);
// Give the thread a hint that it is a good time to sleep
void GoSleep(Event &done);
// Let the thread run again
void WakeUp(Event &done);
// Run the object by an external thread
Status DoJob(void);
protected:
// routine for running thread
static
Ipp32u VM_THREAD_CALLCONVENTION ThreadProc(void *);
AVSFussionCore *m_pCore; // (AVSFussionCore *) pointer to a fussion core
volatile
bool m_bQuit; // (bool) exit flag
volatile
bool m_bSleep; // (bool) it is good time to sleep
Event *m_pSignal; // (Event *) pointer to a sync object
Ipp32s m_threadNum; // (Ipp32s) ordinal number of thread
};
} // namespace UMC
#endif // __UMC_AVS_DEC_THREAD_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -