Skip to content
Snippets Groups Projects
Commit 941396fe authored by Amber-Sophia Schröck's avatar Amber-Sophia Schröck
Browse files

update example

parent 12b6c0c4
No related branches found
No related tags found
No related merge requests found
mnthread @ 0f7d98c0
Subproject commit 302752913bf37b60943759b119823fa93b9e6a2d
Subproject commit 0f7d98c0fbef9af0f1f85d8202fd38c77fa754a2
......@@ -19,9 +19,11 @@ public:
cpu1_task() : mthread("hello_task", 5, 2048) { k = 0;}
virtual void* on_thread() {
int id = get_id();
int core = get_on_core();
for(;;) {
printf("HalloWelt!\n");
printf("[%d:%d] HalloWelt!\n", id, core);
sleep(1);
}
......@@ -31,11 +33,12 @@ private:
int k;
};
extern "C" void app_main()
{
extern "C" void app_main() {
cpu1_task __test1;
__test1.create();
cpu1_task __test[10];//, __test2;
for(int i=0; i < 10; i++) {
__test[i].create(i % 2);
}
for(;;) { }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment