Removes ThreadDrillerEvents, replaces handlers with TreadEventBus
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
-2
@@ -35,7 +35,6 @@ namespace AZStd
|
||||
|
||||
destroy_thread_info(ti);
|
||||
ThreadEventBus::Broadcast(&ThreadEventBus::Events::OnThreadExit, this_thread::get_id());
|
||||
ThreadDrillerEventBus::Broadcast(&ThreadDrillerEventBus::Events::OnThreadExit, this_thread::get_id());
|
||||
pthread_exit(nullptr);
|
||||
return nullptr;
|
||||
}
|
||||
@@ -88,7 +87,6 @@ namespace AZStd
|
||||
Platform::PostCreateThread(tId, name, cpuId);
|
||||
|
||||
ThreadEventBus::Broadcast(&ThreadEventBus::Events::OnThreadEnter, thread::id(tId), desc);
|
||||
ThreadDrillerEventBus::Broadcast(&ThreadDrillerEventBus::Events::OnThreadEnter, thread::id(tId), desc);
|
||||
return tId;
|
||||
}
|
||||
}
|
||||
|
||||
-2
@@ -38,7 +38,6 @@ namespace AZStd
|
||||
destroy_thread_info(ti);
|
||||
|
||||
ThreadEventBus::Broadcast(&ThreadEventBus::Events::OnThreadExit, this_thread::get_id()); // goes to client listeners
|
||||
ThreadDrillerEventBus::Broadcast(&ThreadDrillerEventBus::Events::OnThreadExit, this_thread::get_id()); // goes to the profiler.
|
||||
|
||||
return Platform::PostThreadRun();
|
||||
}
|
||||
@@ -73,7 +72,6 @@ namespace AZStd
|
||||
}
|
||||
|
||||
ThreadEventBus::Broadcast(&ThreadEventBus::Events::OnThreadEnter, thread::id(*id), desc);
|
||||
ThreadDrillerEventBus::Broadcast(&ThreadDrillerEventBus::Events::OnThreadEnter, thread::id(*id), desc);
|
||||
|
||||
::ResumeThread(hThread);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user