?? task.h
字號:
/***************************************************************************
*
* Copyright (c) 1993 READY SYSTEMS CORPORATION.
*
* All rights reserved. READY SYSTEMS' source code is an unpublished
* work and the use of a copyright notice does not imply otherwise.
* This source code contains confidential, trade secret material of
* READY SYSTEMS. Any attempt or participation in deciphering, decoding,
* reverse engineering or in any way altering the source code is
* strictly prohibited, unless the prior written consent of
* READY SYSTEMS is obtained.
*
*
* Module Name: task.h
*
* Identification: @(#) 1.12 task.h
*
* Date: 2/22/94 14:43:30
*
****************************************************************************
*/
#include <vrtxil.h>
class Task {
public:
Task (void (*entry_point) (), int priority = 1, int id = -1);
~Task ();
void suspend ();
void resume ();
int id ();
static void delay (unsigned long ticks);
static void delay (struct timespec seconds);
static void exit ();
static void yield ();
TCB *tcb ();
int priority ();
int status ();
void set_priority (int priority);
/* this_id is temporary; should be replaced by static Task *thisTask() */
static int this_id ();
private:
int tid;
};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -