Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/rcutest/rcutest.c

    r5d230a30 r1d6dd2a  
    3838#include <stdlib.h>
    3939#include <stdint.h>
     40#include <str_error.h>
    4041#include <mem.h>
    4142#include <errno.h>
     
    4748#include <compiler/barrier.h>
    4849#include <futex.h>
     50#include <str.h>
    4951
    5052#include <rcu.h>
     
    167169
    168170
    169 typedef int (*fibril_func_t)(void *);
    170 
    171 static bool create_fibril(int (*func)(void*), void *arg)
     171typedef errno_t (*fibril_func_t)(void *);
     172
     173static bool create_fibril(errno_t (*func)(void*), void *arg)
    172174{
    173175        fid_t fid = fibril_create(func, arg);
     
    307309
    308310
    309 static int sleeping_reader(one_reader_info_t *arg)
     311static errno_t sleeping_reader(one_reader_info_t *arg)
    310312{
    311313        rcu_register_fibril();
     
    389391
    390392
    391 static int preexisting_reader(two_reader_info_t *arg)
     393static errno_t preexisting_reader(two_reader_info_t *arg)
    392394{
    393395        rcu_register_fibril();
     
    429431}
    430432
    431 static int new_reader(two_reader_info_t *arg)
     433static errno_t new_reader(two_reader_info_t *arg)
    432434{
    433435        rcu_register_fibril();
     
    550552
    551553
    552 static int exiting_locked_reader(exit_reader_info_t *arg)
     554static errno_t exiting_locked_reader(exit_reader_info_t *arg)
    553555{
    554556        rcu_register_fibril();
     
    646648}
    647649
    648 static int seq_reader(seq_test_info_t *arg)
     650static errno_t seq_reader(seq_test_info_t *arg)
    649651{
    650652        rcu_register_fibril();
     
    689691}
    690692
    691 static int seq_updater(seq_test_info_t *arg)
     693static errno_t seq_updater(seq_test_info_t *arg)
    692694{
    693695        rcu_register_fibril();
     
    778780                thread_id_t tid;
    779781               
    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);
    781783                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));
    783785                        return false;
    784786                }
     
    861863        if (argc == 3) {
    862864                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);
    864866               
    865867                if (ret == EOK && 1 <= thread_cnt && thread_cnt <= 64) {
Note: See TracChangeset for help on using the changeset viewer.