Changes in uspace/app/rcutest/rcutest.c [b7fd2a0:c1694b6b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/rcutest/rcutest.c
rb7fd2a0 rc1694b6b 168 168 169 169 170 typedef errno_t (*fibril_func_t)(void *);171 172 static bool create_fibril( errno_t (*func)(void*), void *arg)170 typedef int (*fibril_func_t)(void *); 171 172 static bool create_fibril(int (*func)(void*), void *arg) 173 173 { 174 174 fid_t fid = fibril_create(func, arg); … … 308 308 309 309 310 static errno_t sleeping_reader(one_reader_info_t *arg)310 static int sleeping_reader(one_reader_info_t *arg) 311 311 { 312 312 rcu_register_fibril(); … … 390 390 391 391 392 static errno_t preexisting_reader(two_reader_info_t *arg)392 static int preexisting_reader(two_reader_info_t *arg) 393 393 { 394 394 rcu_register_fibril(); … … 430 430 } 431 431 432 static errno_t new_reader(two_reader_info_t *arg)432 static int new_reader(two_reader_info_t *arg) 433 433 { 434 434 rcu_register_fibril(); … … 551 551 552 552 553 static errno_t exiting_locked_reader(exit_reader_info_t *arg)553 static int exiting_locked_reader(exit_reader_info_t *arg) 554 554 { 555 555 rcu_register_fibril(); … … 647 647 } 648 648 649 static errno_t seq_reader(seq_test_info_t *arg)649 static int seq_reader(seq_test_info_t *arg) 650 650 { 651 651 rcu_register_fibril(); … … 690 690 } 691 691 692 static errno_t seq_updater(seq_test_info_t *arg)692 static int seq_updater(seq_test_info_t *arg) 693 693 { 694 694 rcu_register_fibril(); … … 779 779 thread_id_t tid; 780 780 781 errno_t ret = thread_create(dummy_fibril, NULL, "urcu-test-worker", &tid);781 int ret = thread_create(dummy_fibril, NULL, "urcu-test-worker", &tid); 782 782 if (EOK != ret) { 783 783 printf("Failed to create thread '%zu' (error: %s)\n", k + 1, str_error_name(ret)); … … 862 862 if (argc == 3) { 863 863 uint32_t thread_cnt = 0; 864 errno_t ret = str_uint32_t(argv[2], NULL, 0, true, &thread_cnt);864 int ret = str_uint32_t(argv[2], NULL, 0, true, &thread_cnt); 865 865 866 866 if (ret == EOK && 1 <= thread_cnt && thread_cnt <= 64) {
Note:
See TracChangeset
for help on using the changeset viewer.