threads.cpp

来自「美国COPLEY驱动器,程序开发工具之一.」· C++ 代码 · 共 31 行

CPP
31
字号
/************************************************************/
/*                                                          */
/*  Copley Motion Libraries                                 */
/*                                                          */
/*  Author: Stephen Glow                                    */
/*                                                          */
/*  Copyright (c) 2002-2005 Copley Controls Corp.           */
/*                          http://www.copleycontrols.com   */
/*                                                          */
/************************************************************/

/** \file 
This file only contains definitions for the generic thread error objects.
The code used to implement the OS specific thread methods is located in
Operating system specific files such as Threads_posix.cpp and Threads_w32.cpp.
*/

#include "CML_Threads.h"

CML_NAMESPACE_USE();

/* static thread error codes */
CML_NEW_ERROR( ThreadError, Start,     "Error starting the thread" );
CML_NEW_ERROR( ThreadError, Running,   "Thread has already been started" );
CML_NEW_ERROR( ThreadError, Timeout,   "Timeout" );
CML_NEW_ERROR( ThreadError, General,   "General thread error" );
CML_NEW_ERROR( ThreadError, BadParam,  "Illegal parameter value" );
CML_NEW_ERROR( ThreadError, Alloc,     "Memory allocation error" );


⌨️ 快捷键说明

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