Adding thread ID to trace lines and cleaning up their formatting.

This commit is contained in:
Ben Vanik
2013-06-30 06:09:08 -07:00
parent 82ee749515
commit 6f602d120a
10 changed files with 84 additions and 49 deletions

View File

@@ -191,9 +191,10 @@ uint32_t Processor::CreateCallback(void (*callback)(void* data), void* data) {
}
ThreadState* Processor::AllocThread(uint32_t stack_size,
uint32_t thread_state_address) {
uint32_t thread_state_address,
uint32_t thread_id) {
ThreadState* thread_state = new ThreadState(
this, stack_size, thread_state_address);
this, stack_size, thread_state_address, thread_id);
return thread_state;
}