mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-21 14:37:50 +00:00
base: fix conversion errors of smp timeout test
The cpu affinity index is an int no unsigned long within the interface definition. Ref genodelabs/genode#4344
This commit is contained in:
parent
e6c64290fa
commit
c0e98f4481
@ -42,7 +42,7 @@ class Test_thread
|
||||
Env &env,
|
||||
TYPE &object,
|
||||
Method method,
|
||||
unsigned long cpu_idx,
|
||||
int cpu_idx,
|
||||
Affinity::Space affinity_space)
|
||||
:
|
||||
Thread {
|
||||
@ -80,7 +80,7 @@ class Test_smp_2
|
||||
unsigned long _count_3 { 0 };
|
||||
unsigned long _count_4 { 0 };
|
||||
unsigned long _count_5 { 0 };
|
||||
unsigned long _cpu_idx { 1 };
|
||||
int _cpu_idx { 1 };
|
||||
bool volatile _timeouts_discarded { false };
|
||||
bool _done_called { false };
|
||||
Mutex _done_mutex { };
|
||||
@ -211,7 +211,7 @@ class Test_smp_1
|
||||
|
||||
Env &_env;
|
||||
unsigned long &_nr_of_errors;
|
||||
unsigned long _cpu_idx { 1 };
|
||||
int _cpu_idx { 1 };
|
||||
bool _max_nr_of_handle_calls_reached { false };
|
||||
Timer::Connection _timeout_timer { _env };
|
||||
Timer::Connection _sleep_timer { _env };
|
||||
|
@ -1,5 +1,3 @@
|
||||
TARGET = test-timeout_smp
|
||||
SRC_CC = main.cc
|
||||
LIBS = base
|
||||
|
||||
CC_CXX_WARN_STRICT_CONVERSION =
|
||||
|
Loading…
Reference in New Issue
Block a user