Fixed unaligned memory accesses

This commit is contained in:
SChernykh
2025-03-20 19:00:02 +01:00
parent a66716c0b1
commit 55e12a3715
3 changed files with 10 additions and 2 deletions

View File

@@ -152,8 +152,16 @@ void Miner::run(void* data)
{
WorkerData* d = static_cast<WorkerData*>(data);
LOGINFO(1, "worker thread " << d->m_index << '/' << d->m_count << " started");
char buf[16] = {};
log::Stream s(buf);
s << "Miner " << d->m_index << '/' << d->m_count;
set_thread_name(buf);
make_thread_background();
d->m_miner->run(d);
LOGINFO(1, "worker thread " << d->m_index << '/' << d->m_count << " stopped");
}