set_thread_name

This commit is contained in:
folkert van heusden 2024-04-23 16:00:00 +02:00
parent c79c32e3ad
commit 8173fa792a
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1
3 changed files with 6 additions and 0 deletions

View file

@ -47,6 +47,8 @@ kw11_l::~kw11_l()
void kw11_l::operator()()
{
set_thread_name("kek:kw-11l");
DOLOG(debug, true, "Starting KW11-L thread");
while(!stop_flag) {

View file

@ -263,6 +263,8 @@ int run_cpu_validation(const std::string & filename)
void get_metrics(cpu *const c)
{
set_thread_name("kek:metrics");
uint64_t previous_instruction_count = c->get_instructions_executed_count();
uint64_t previous_ts = get_us();
uint64_t previous_idle_time = c->get_wait_time();

View file

@ -130,6 +130,8 @@ uint16_t tty::readWord(const uint16_t addr)
void tty::operator()()
{
set_thread_name("kek:tty");
while(!stop_flag) {
if (c->poll_char()) {
#if defined(BUILD_FOR_RP2040)