📄 threads.cpp
字号:
/************************************************************/
/* */
/* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -