Date: | November 13, 2003 / year-entry #127 |
Tags: | code |
Orig Link: | https://blogs.msdn.microsoft.com/oldnewthing/20031113-00/?p=41853 |
Comments: | 0 |
Summary: | Answer to previous exercise: The m_fRecursing flag does not need to be per-instance. It only needs to be valid long enough that the recursive call that comes immediately afterwards can be detected. However, a global variable would not work because two threads might be inside the recursive DefDlgProc call simultaneously. But a thread-local variable would... |
Answer to previous exercise: The |