X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=mart%2Fex02%2Fex02d.c;h=040882541fb4b5ff44f98cd70c07e8e13cdc7fb0;hb=4367e5a28ec4d81771a05d9a8631995f5356d270;hp=fa5dca43129356deda27d16f3cfe9cd2e1f35ea6;hpb=05adb904e3477fffe7180c84d6ed73f06e6d26fb;p=des2015.git diff --git a/mart/ex02/ex02d.c b/mart/ex02/ex02d.c index fa5dca4..0408825 100644 --- a/mart/ex02/ex02d.c +++ b/mart/ex02/ex02d.c @@ -14,7 +14,6 @@ RT_TASK task1, task2, task3; void demo(void *arg) { rt_task_set_periodic(NULL, TM_NOW, *(unsigned long long *)arg); - rt_printf("%llu\n", *(unsigned long long *)arg); RT_TASK *curtask; RT_TASK_INFO curtaskinfo; curtask=rt_task_self(); @@ -29,15 +28,12 @@ int main(int argc, char* argv[]) { rt_print_auto_init(1); mlockall(MCL_CURRENT|MCL_FUTURE); - rt_printf("start task\n"); rt_task_create(&task1, "t1", 0, 50, 0); rt_task_create(&task2, "t2", 0, 50, 0); rt_task_create(&task3, "t3", 0, 50, 0); - unsigned long long num1 = 1000000000LLU; - unsigned long long num2 = 2000000000LLU; - unsigned long long num3 = 3000000000LLU; + uint64_t num1 = 1000000000LLU, num2 = 2000000000LLU, num3 = 3000000000LLU; rt_task_start(&task1, &demo, (void *)&num1); rt_task_start(&task2, &demo, (void *)&num2);