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

📄 vm_thread.h

📁 这是在PCA下的基于IPP库示例代码例子,在网上下了IPP的库之后,设置相关参数就可以编译该代码.
💻 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) 2003-2005 Intel Corporation. All Rights Reserved.//*/#ifndef __VM_THREAD_H__#define __VM_THREAD_H__#include "vm_types.h"#ifdef __cplusplusextern "C" {#endif /* __cplusplus *//* IMPORTANT: *    The thread return value is always saved for the calling thread to *    collect. To avoid memory leak, always vm_thread_wait() for the *    child thread to terminate in the calling thread. */typedef unsigned int (* vm_thread_callback)(void *);typedef enum{    VM_THREAD_PRIORITY_HIGHEST,    VM_THREAD_PRIORITY_HIGH,    VM_THREAD_PRIORITY_NORMAL,    VM_THREAD_PRIORITY_LOW,    VM_THREAD_PRIORITY_LOWEST} vm_thread_priority;/* Set the thread handler to an invalid value */void vm_thread_set_invalid(vm_thread *thread);/* Verify if the thread handler is valid */int vm_thread_is_valid(vm_thread *thread);/* Create a thread. The thread is set to run at the call.   Return 1 if successful */int vm_thread_create(vm_thread *thread, vm_thread_callback func, void *arg);/* Wait until a thread exists */void vm_thread_wait(vm_thread *thread);/* Set thread priority. Return 1 if successful */int  vm_thread_set_priority(vm_thread *thread, vm_thread_priority priority);/* Close thread after all */void vm_thread_close(vm_thread *thread);#ifdef __cplusplus}#endif /* __cplusplus */#endif /* __VM_THREAD_H__ */

⌨️ 快捷键说明

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