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