mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
thread_test: Resolved ambiguity of uint_16t.
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
#include <timer_session/connection.h>
|
#include <timer_session/connection.h>
|
||||||
#include <topo_session/node.h>
|
#include <topo_session/node.h>
|
||||||
#include <base/heap.h>
|
#include <base/heap.h>
|
||||||
|
#include <base/log.h>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
@@ -17,13 +18,13 @@ class Thread_test::Test_thread : public Thread
|
|||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
Env &_env;
|
Env &_env;
|
||||||
uint16_t _id;
|
Genode::uint16_t _id;
|
||||||
Timer::Connection _timer{_env};
|
Timer::Connection _timer{_env};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
List_element<Test_thread> _list_element{this};
|
List_element<Test_thread> _list_element{this};
|
||||||
|
|
||||||
Test_thread(Env &env, uint16_t id, Location const &location)
|
Test_thread(Env &env, Genode::uint16_t id, Location const &location)
|
||||||
: Thread(env, Name("test_", location.xpos(), "x", location.ypos()), 4 * 4096, location, Weight(), env.cpu()),
|
: Thread(env, Name("test_", location.xpos(), "x", location.ypos()), 4 * 4096, location, Weight(), env.cpu()),
|
||||||
_env(env),
|
_env(env),
|
||||||
_id(id)
|
_id(id)
|
||||||
@@ -71,7 +72,7 @@ public:
|
|||||||
for (unsigned i = 1; i < space.total(); i++)
|
for (unsigned i = 1; i < space.total(); i++)
|
||||||
{
|
{
|
||||||
Affinity::Location location = env.cpu().affinity_space().location_of_index(i);
|
Affinity::Location location = env.cpu().affinity_space().location_of_index(i);
|
||||||
Test_thread *thread = new (_heap) Test_thread(env, (uint16_t)i, location);
|
Test_thread *thread = new (_heap) Test_thread(env, (Genode::uint16_t)i, location);
|
||||||
thread->start();
|
thread->start();
|
||||||
|
|
||||||
_threads.insert(&thread->_list_element);
|
_threads.insert(&thread->_list_element);
|
||||||
|
|||||||
Reference in New Issue
Block a user