-
Notifications
You must be signed in to change notification settings - Fork 65
dbg.cpp, dbg.h: translated #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| if (msgBoxThread != NULL) | ||
| { | ||
| WaitForSingleObject(msgBoxThread, INFINITE); // pokud se da TRACE_C do DllMain do DLL_THREAD_ATTACH, dojde k deadlocku - silne nepravdepodobne, neresime | ||
| WaitForSingleObject(msgBoxThread, INFINITE); // if TRACE_C is in DllMain to DLL_THREAD_DETACH, deadlock will occur - very unlikely, not solved |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unlikely, ignored
| else // ostatni thready s TRACE_C zablokujeme, az se zavre msgbox otevreny pro | ||
| { // prvni TRACE_C, tak to tam i spadne, at v tom neni bordel | ||
| else // we will block another threads with TRACE_C, once the msgbox, opened | ||
| // for the first TRACE_C, is closed, it will be passed there, so that there is no mess |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it will be passed there, so that there is no mess
->
so it will crash there, to avoid a mess
| { | ||
| while (1) | ||
| Sleep(1000); // blokace vede na deadlock napr. kdyz je (a nema byt) TRACE_C v DLL_THREAD_DETACH | ||
| Sleep(1000); // blocking leads to deadlock, e.g. when TRACE_C is in DLL_THREAD_DETACH (but it should not) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(but it should not) -> (and should not be)
| // SPDX-License-Identifier: GPL-2.0-or-later | ||
|
|
||
| // CommentsTranslationProject: TRANSLATED | ||
| // |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove empty comment
| // CALL-STACK is disabled by defining CALLSTK_DISABLE macro | ||
|
|
||
| // CAUTION: TRACE_C can't be used in DllMain of libraries, nor in any code called from DllMain, | ||
| // otherwise deadlock occurs, see implementation of C__Trace::SendMessageToServer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
align otherwise with TRACE_C (column)
No description provided.