implement loop demo
This commit is contained in:
@ -9,14 +9,19 @@
|
||||
#include "user/LoopThread.h"
|
||||
#include "kernel/Globals.h"
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
* Methode: LoopThread::run *
|
||||
*---------------------------------------------------------------------------*
|
||||
* Beschreibung: Code des Threads. *
|
||||
*****************************************************************************/
|
||||
void LoopThread::run () {
|
||||
|
||||
/* Hier muss Code eingefuegt werden */
|
||||
|
||||
void LoopThread::run() {
|
||||
|
||||
/* Hier muss Code eingefuegt werden */
|
||||
|
||||
int cnt = 0;
|
||||
while (true) {
|
||||
kout.setpos(55, this->id);
|
||||
kout << this->id << ": " << dec << cnt++ << endl;
|
||||
scheduler.yield();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user