⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lwip_sysboot_threadtype.h

📁 blackfin561网络开发源码
💻 H
字号:
/* =============================================================================
 *
 *  Description: This is a C++ to C Thread Header file for Thread lwip_sysboot_threadtype
 *
 * -----------------------------------------------------------------------------
 *  Comments:
 *
 * ===========================================================================*/

#ifndef _lwip_sysboot_threadtype_H_
#define _lwip_sysboot_threadtype_H_

#include "VDK.h"

#ifdef __ECC__	/* for C/C++ access */
#ifdef __cplusplus
extern "C" void lwip_sysboot_threadtype_InitFunction(void**, VDK::Thread::ThreadCreationBlock *);
#else
extern "C" void lwip_sysboot_threadtype_InitFunction(void**, VDK_ThreadCreationBlock *);
#endif
extern "C" void lwip_sysboot_threadtype_DestroyFunction(void**);
extern "C" int  lwip_sysboot_threadtype_ErrorFunction(void**);
extern "C" void lwip_sysboot_threadtype_RunFunction(void**);
#endif /* __ECC__ */

#ifdef __cplusplus
#include <new>

class lwip_sysboot_threadtype_Wrapper : public VDK::Thread
{
public:
    lwip_sysboot_threadtype_Wrapper(VDK::ThreadCreationBlock &t)
        : VDK::Thread(t)
    { lwip_sysboot_threadtype_InitFunction(&m_DataPtr, &t); }

    ~lwip_sysboot_threadtype_Wrapper()
    { lwip_sysboot_threadtype_DestroyFunction(&m_DataPtr); }

    int ErrorHandler()
    { 
      return lwip_sysboot_threadtype_ErrorFunction(&m_DataPtr);
     }

    void Run()
    { lwip_sysboot_threadtype_RunFunction(&m_DataPtr); }

    static VDK::Thread* Create(VDK::Thread::ThreadCreationBlock &t)
    { return new (t) lwip_sysboot_threadtype_Wrapper(t); }
};

#endif /* __cplusplus */
#endif /* _lwip_sysboot_threadtype_H_ */

/* ========================================================================== */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -