Changes in uspace/app/rcutest/rcutest.c [5d230a30:1d6dd2a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/rcutest/rcutest.c
r5d230a30 r1d6dd2a 38 38 #include <stdlib.h> 39 39 #include <stdint.h> 40 #include <str_error.h> 40 41 #include <mem.h> 41 42 #include <errno.h> … … 47 48 #include <compiler/barrier.h> 48 49 #include <futex.h> 50 #include <str.h> 49 51 50 52 #include <rcu.h> … … 167 169 168 170 169 typedef int (*fibril_func_t)(void *);170 171 static bool create_fibril( int (*func)(void*), void *arg)171 typedef errno_t (*fibril_func_t)(void *); 172 173 static bool create_fibril(errno_t (*func)(void*), void *arg) 172 174 { 173 175 fid_t fid = fibril_create(func, arg); … … 307 309 308 310 309 static int sleeping_reader(one_reader_info_t *arg)311 static errno_t sleeping_reader(one_reader_info_t *arg) 310 312 { 311 313 rcu_register_fibril(); … … 389 391 390 392 391 static int preexisting_reader(two_reader_info_t *arg)393 static errno_t preexisting_reader(two_reader_info_t *arg) 392 394 { 393 395 rcu_register_fibril(); … … 429 431 } 430 432 431 static int new_reader(two_reader_info_t *arg)433 static errno_t new_reader(two_reader_info_t *arg) 432 434 { 433 435 rcu_register_fibril(); … … 550 552 551 553 552 static int exiting_locked_reader(exit_reader_info_t *arg)554 static errno_t exiting_locked_reader(exit_reader_info_t *arg) 553 555 { 554 556 rcu_register_fibril(); … … 646 648 } 647 649 648 static int seq_reader(seq_test_info_t *arg)650 static errno_t seq_reader(seq_test_info_t *arg) 649 651 { 650 652 rcu_register_fibril(); … … 689 691 } 690 692 691 static int seq_updater(seq_test_info_t *arg)693 static errno_t seq_updater(seq_test_info_t *arg) 692 694 { 693 695 rcu_register_fibril(); … … 778 780 thread_id_t tid; 779 781 780 int ret = thread_create(dummy_fibril, NULL, "urcu-test-worker", &tid);782 errno_t ret = thread_create(dummy_fibril, NULL, "urcu-test-worker", &tid); 781 783 if (EOK != ret) { 782 printf("Failed to create thread '%zu' (error: % d)\n", k + 1, ret);784 printf("Failed to create thread '%zu' (error: %s)\n", k + 1, str_error_name(ret)); 783 785 return false; 784 786 } … … 861 863 if (argc == 3) { 862 864 uint32_t thread_cnt = 0; 863 int ret = str_uint32_t(argv[2], NULL, 0, true, &thread_cnt);865 errno_t ret = str_uint32_t(argv[2], NULL, 0, true, &thread_cnt); 864 866 865 867 if (ret == EOK && 1 <= thread_cnt && thread_cnt <= 64) {
Note:
See TracChangeset
for help on using the changeset viewer.