Ignore:
File:
1 edited

Legend:

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

    r1d6dd2a r5d230a30  
    3838#include <stdlib.h>
    3939#include <stdint.h>
    40 #include <str_error.h>
    4140#include <mem.h>
    4241#include <errno.h>
     
    4847#include <compiler/barrier.h>
    4948#include <futex.h>
    50 #include <str.h>
    5149
    5250#include <rcu.h>
     
    169167
    170168
    171 typedef errno_t (*fibril_func_t)(void *);
    172 
    173 static bool create_fibril(errno_t (*func)(void*), void *arg)
     169typedef int (*fibril_func_t)(void *);
     170
     171static bool create_fibril(int (*func)(void*), void *arg)
    174172{
    175173        fid_t fid = fibril_create(func, arg);
     
    309307
    310308
    311 static errno_t sleeping_reader(one_reader_info_t *arg)
     309static int sleeping_reader(one_reader_info_t *arg)
    312310{
    313311        rcu_register_fibril();
     
    391389
    392390
    393 static errno_t preexisting_reader(two_reader_info_t *arg)
     391static int preexisting_reader(two_reader_info_t *arg)
    394392{
    395393        rcu_register_fibril();
     
    431429}
    432430
    433 static errno_t new_reader(two_reader_info_t *arg)
     431static int new_reader(two_reader_info_t *arg)
    434432{
    435433        rcu_register_fibril();
     
    552550
    553551
    554 static errno_t exiting_locked_reader(exit_reader_info_t *arg)
     552static int exiting_locked_reader(exit_reader_info_t *arg)
    555553{
    556554        rcu_register_fibril();
     
    648646}
    649647
    650 static errno_t seq_reader(seq_test_info_t *arg)
     648static int seq_reader(seq_test_info_t *arg)
    651649{
    652650        rcu_register_fibril();
     
    691689}
    692690
    693 static errno_t seq_updater(seq_test_info_t *arg)
     691static int seq_updater(seq_test_info_t *arg)
    694692{
    695693        rcu_register_fibril();
     
    780778                thread_id_t tid;
    781779               
    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);
    783781                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);
    785783                        return false;
    786784                }
     
    863861        if (argc == 3) {
    864862                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);
    866864               
    867865                if (ret == EOK && 1 <= thread_cnt && thread_cnt <= 64) {
Note: See TracChangeset for help on using the changeset viewer.