diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..a55e7a1 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/file/include/util.h b/file/include/util.h index a355fb1..e3480d1 100644 --- a/file/include/util.h +++ b/file/include/util.h @@ -26,16 +26,16 @@ #if defined APL || defined LIN #include -#include #include +#include #endif #include #include +#include #include #include #include -#include namespace util { @@ -275,9 +275,7 @@ namespace util return 0; } #pragma clang diagnostic pop - #endif - static inline void setThreadName(const std::string &name) { #ifdef APL @@ -295,9 +293,6 @@ namespace util // http://man7.org/linux/man-pages/man2/prctl.2.html // pthread_setname_np(pthread_self(), name.substr(0, 15).c_str()); -#endif -#ifdef IBM - SetThreadName(-1, name.c_str()); #endif }