fd401bdf53
This patch cleans up the thread API and comes with the following noteworthy changes: - Introduced Cpu_session::Weight type that replaces a formerly used plain integer value to prevent the accidental mix-up of arguments. - The enum definition of Cpu_session::DEFAULT_WEIGHT moved to Cpu_session::Weight::DEFAULT_WEIGHT - New Thread constructor that takes a 'Env &' as first argument. The original constructors are now marked as deprecated. For the common use case where the default 'Weight' and 'Affinity' are used, a shortcut is provided. In the long term, those two constructors should be the only ones to remain. - The former 'Thread<>' class template has been renamed to 'Thread_deprecated'. - The former 'Thread_base' class is now called 'Thread'. - The new 'name()' accessor returns the thread's name as 'Name' object as centrally defined via 'Cpu_session::Name'. It is meant to replace the old-fashioned 'name' method that takes a buffer and size as arguments. - Adaptation of the thread test to the new API Issue #1954 |
||
---|---|---|
.. | ||
include | ||
spec/x86 | ||
core_mem_alloc.cc | ||
core_region_map.cc | ||
core_rpc_cap_alloc.cc | ||
cpu_session_component.cc | ||
cpu_session_support.cc | ||
dataspace_component.cc | ||
default_log.cc | ||
dump_alloc.cc | ||
io_mem_session_component.cc | ||
main.cc | ||
multiboot_info.cc | ||
pager_ep.cc | ||
pager_object.cc | ||
pd_assign_pci.cc | ||
pd_session_component.cc | ||
pd_upgrade_ram_quota.cc | ||
platform_services.cc | ||
ram_session_component.cc | ||
region_map_component.cc | ||
rom_session_component.cc | ||
rpc_cap_factory.cc | ||
signal_source_component.cc | ||
stack_area.cc | ||
trace_session_component.cc | ||
version.cc | ||
version.inc |