rm5248 commented on a change in pull request #68:
URL: https://github.com/apache/logging-log4cxx/pull/68#discussion_r695269347



##########
File path: src/main/cpp/threadutility.cpp
##########
@@ -0,0 +1,91 @@
+#include "log4cxx/helpers/threadutility.h"
+#include "log4cxx/private/log4cxx_private.h"
+#include "log4cxx/helpers/loglog.h"
+
+#include <signal.h>
+
+#if LOG4CXX_HAS_SETTHREADDESCRIPTION
+#include <windows.h>
+#include <processthreadsapi.h>
+#endif
+
+using log4cxx::helpers::ThreadUtility;
+
+struct ThreadUtility::priv_data{

Review comment:
       This is related to 
[LOGCXX-516](https://issues.apache.org/jira/browse/LOGCXX-516), to make things 
ABI-stable.  The CPP Core Guidelines suggest using `impl` as the class name, Qt 
uses `d_ptr`, I like using `priv_data`.  Effectively all this is doing is 
putting all of the instance variables into a hidden struct so that any users of 
the code don't need to be recompiled incase we add/remove members into the 
class.
   
   I don't have a strong opinion as to what we name it.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to