|
|
|
|
@ -15,7 +15,7 @@ namespace AZStd
|
|
|
|
|
{
|
|
|
|
|
namespace Platform
|
|
|
|
|
{
|
|
|
|
|
void PostThreadRun();
|
|
|
|
|
unsigned __stdcall PostThreadRun();
|
|
|
|
|
HANDLE CreateThread(unsigned stackSize, unsigned (__stdcall* threadRunFunction)(void*), AZStd::Internal::thread_info* ti, unsigned int* id);
|
|
|
|
|
unsigned HardwareConcurrency();
|
|
|
|
|
void SetThreadName(HANDLE hThread, const char* threadName);
|
|
|
|
|
@ -40,9 +40,7 @@ namespace AZStd
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
Platform::PostThreadRun();
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
return Platform::PostThreadRun();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|