set_thread_name
This commit is contained in:
parent
c79c32e3ad
commit
8173fa792a
3 changed files with 6 additions and 0 deletions
|
@ -47,6 +47,8 @@ kw11_l::~kw11_l()
|
||||||
|
|
||||||
void kw11_l::operator()()
|
void kw11_l::operator()()
|
||||||
{
|
{
|
||||||
|
set_thread_name("kek:kw-11l");
|
||||||
|
|
||||||
DOLOG(debug, true, "Starting KW11-L thread");
|
DOLOG(debug, true, "Starting KW11-L thread");
|
||||||
|
|
||||||
while(!stop_flag) {
|
while(!stop_flag) {
|
||||||
|
|
2
main.cpp
2
main.cpp
|
@ -263,6 +263,8 @@ int run_cpu_validation(const std::string & filename)
|
||||||
|
|
||||||
void get_metrics(cpu *const c)
|
void get_metrics(cpu *const c)
|
||||||
{
|
{
|
||||||
|
set_thread_name("kek:metrics");
|
||||||
|
|
||||||
uint64_t previous_instruction_count = c->get_instructions_executed_count();
|
uint64_t previous_instruction_count = c->get_instructions_executed_count();
|
||||||
uint64_t previous_ts = get_us();
|
uint64_t previous_ts = get_us();
|
||||||
uint64_t previous_idle_time = c->get_wait_time();
|
uint64_t previous_idle_time = c->get_wait_time();
|
||||||
|
|
2
tty.cpp
2
tty.cpp
|
@ -130,6 +130,8 @@ uint16_t tty::readWord(const uint16_t addr)
|
||||||
|
|
||||||
void tty::operator()()
|
void tty::operator()()
|
||||||
{
|
{
|
||||||
|
set_thread_name("kek:tty");
|
||||||
|
|
||||||
while(!stop_flag) {
|
while(!stop_flag) {
|
||||||
if (c->poll_char()) {
|
if (c->poll_char()) {
|
||||||
#if defined(BUILD_FOR_RP2040)
|
#if defined(BUILD_FOR_RP2040)
|
||||||
|
|
Loading…
Add table
Reference in a new issue