exception.h

来自「LINUX 下NACHOS 系统的页面调度算法的实现」· C头文件 代码 · 共 40 行

H
40
字号
// exception.h            -*- C++ -*-// No files besides exception.cc ought to #include this file!#include "thread.h"#include "console.h"#include "synch.h" #define MaxNoThreads 20int numThreadsExec = 0;int joinInvoked = 0; struct joinThreadList{  Thread *threadExecuting[MaxNoThreads];  Condition *completeThread[MaxNoThreads];  Lock *completeLock[MaxNoThreads];} joinThreadList; int statusReturned[MaxNoThreads];int threadComplete[MaxNoThreads];static int threadsIn = 1;static Console *console;static Semaphore *readAvail;static Semaphore *writeDone;static Lock *writeLock;static void ReadAvail(int arg){  if (arg) {} // ignore arg, silence warning.  readAvail->V();}static void WriteDone(int arg){  if (arg) {} // ignore arg, silence warning.  writeDone->V();}

⌨️ 快捷键说明

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