SWDEV-328274 - Move DLLMain from VDI layer to HIP/OCL layers

Change-Id: Idc84eb0db92d21a5ced8769fa1eae064b86c31b0
이 커밋은 다음에 포함됨:
haoyuan2
2022-04-05 17:23:28 -07:00
커밋한 사람 Hao Yuan
부모 d45794e985
커밋 1fbc01a812
2개의 변경된 파일0개의 추가작업 그리고 38개의 파일을 삭제
-36
파일 보기
@@ -119,40 +119,4 @@ uint ReferenceCountedObject::release() {
return newCount;
}
#ifdef _WIN32
#ifdef DEBUG
static int reportHook(int reportType, char* message, int* returnValue) {
if (returnValue) {
*returnValue = 1;
}
std::cerr << message;
::exit(3);
return TRUE;
}
#endif // DEBUG
extern "C" BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved) {
switch (reason) {
case DLL_PROCESS_ATTACH:
#ifdef DEBUG
if (!::getenv("AMD_OCL_ENABLE_MESSAGE_BOX")) {
_CrtSetReportHook(reportHook);
_set_error_mode(_OUT_TO_STDERR);
}
#endif // DEBUG
break;
case DLL_PROCESS_DETACH:
amd::shutDown();
break;
case DLL_THREAD_DETACH: {
amd::Thread* thread = amd::Thread::current();
delete thread;
} break;
default:
break;
}
return true;
}
#endif
} // namespace amd
-2
파일 보기
@@ -82,8 +82,6 @@ public:
inline bool Runtime::initialized() { return initialized_; }
extern void shutDown();
} // namespace amd
#endif /*RUNTIME_HPP_*/