annotate example/Miller_Rabin/ppe/task_init.cc @ 1242:9d37fa6bc1da draft

add Miller_Rabin
author Daichi Toma <amothic@gmail.com>
date Tue, 01 Nov 2011 19:01:13 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1242
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
1 #include "Func.h"
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
2 #include "Scheduler.h"
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
3
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
4 SchedExternTask(Prime);
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
5 SchedExternTask(PrintTask);
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
6
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
7 void
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
8 task_init()
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
9 {
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
10 SchedRegister(Prime);
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
11 SchedRegister(PrintTask);
9d37fa6bc1da add Miller_Rabin
Daichi Toma <amothic@gmail.com>
parents:
diff changeset
12 }