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();
{
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);