📄 app4.cc.svn-base
字号:
/*****************************************************************************//* Betriebssysteme *//*---------------------------------------------------------------------------*//* *//* A P P L I C A T I O N *//* *//*---------------------------------------------------------------------------*//* Die Klasse Application definiert die einzige Anwendung von OO-Stubs. *//*****************************************************************************//* INCLUDES */#include "machine/cpu.h"#include "guard/guard.h"extern CPU cpu;extern Guard guard;#include "user/appl.h"#include "device/cgastr.h"#include "guard/secure.h"#include "syscall/guarded_scheduler.h"/* GLOBALE VARIABLEN */extern Guarded_Scheduler scheduler;extern CGA_Stream kout;Application::Application(void* tos, int row) : Thread(tos), _row(row){}Application::~Application(){}void Application::action (){ int type_x, type_y; int i = 0; for(;;) { //for(int j = 0; j < (128 | (1<<(_row+7))); j++); do { Secure lock; kout.getpos(type_x, type_y); kout.setpos(0, _row); kout << _row << " loop: " << i++ <<endl; kout.flush(); kout.setpos(type_x, type_y); } while(0); scheduler.resume(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -