X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/acad886cb4119e4077783b063d85e74cbe266106..ca77701441e39245dcbfce903049e76f166979e5:/include/wx/private/threadinfo.h diff --git a/include/wx/private/threadinfo.h b/include/wx/private/threadinfo.h index 87eee51cc6..6c00c800c4 100644 --- a/include/wx/private/threadinfo.h +++ b/include/wx/private/threadinfo.h @@ -3,7 +3,7 @@ // Purpose: declaration of wxThreadSpecificInfo: thread-specific information // Author: Vadim Zeitlin // Created: 2009-07-13 -// RCS-ID: $Id: wxhead.h,v 1.11 2009-06-29 10:23:04 zeitlin Exp $ +// RCS-ID: $Id$ // Copyright: (c) 2009 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,18 @@ class WXDLLIMPEXP_FWD_BASE wxLog; // NB: this must be a POD to be stored in TLS struct wxThreadSpecificInfo { + // the thread-specific logger or NULL if the thread is using the global one + // (this is not used for the main thread which always uses the global + // logger) wxLog *logger; + + // true if logging is currently disabled for this thread (this is also not + // used for the main thread which uses wxLog::ms_doLog) + // + // NB: we use a counter-intuitive "disabled" flag instead of "enabled" one + // because the default, for 0-initialized struct, should be to enable + // logging + bool loggingDisabled; }; // currently this is defined in src/common/log.cpp