From 744bf0b412bb00ebc582fdae7d066da56fea294c Mon Sep 17 00:00:00 2001 From: root Date: Sat, 12 Sep 2015 10:37:07 +0200 Subject: [PATCH] done ex2 --- mart/ex02/ex02d.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/mart/ex02/ex02d.c b/mart/ex02/ex02d.c index fa5dca4..db51849 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,14 @@ 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; + uint64_t num2 = 2000000000LLU; + uint64_t num3 = 3000000000LLU; rt_task_start(&task1, &demo, (void *)&num1); rt_task_start(&task2, &demo, (void *)&num2); -- 2.20.1