Permalink
Browse files

more meaningful thread-names (#105)

  • Loading branch information...
akoepsel committed Dec 20, 2017
1 parent 0f67ee9 commit 4c794e98efcd5abb2e012c8f89fb40380be7d950
Showing with 5 additions and 4 deletions.
  1. +1 −1 config/gcc.m4
  2. +1 −0 config/openssl.m4
  3. +3 −3 src/rofl/common/cthread.cpp
View
@@ -23,6 +23,6 @@ if test "$is_gcc" == "0"; then
AC_MSG_RESULT(compatible)
else
AC_MSG_RESULT(incompatible)
AC_ERROR([ERROR: your GCC version '$gcc_version' is in the list of blacklisted GCC vesions {$BLACKLISTED_GCC_VERSIONS}. This is due to bugs affecting -O3 optimizations. Please use another version. ])
AC_MSG_ERROR([ERROR: your GCC version '$gcc_version' is in the list of blacklisted GCC vesions {$BLACKLISTED_GCC_VERSIONS}. This is due to bugs affecting -O3 optimizations. Please use another version. ])
fi
fi
View
@@ -14,6 +14,7 @@ if test "$ssl_detected" = "yes"; then
AC_DEFINE_UNQUOTED([SRVKEY],["$(pwd)/../tools/xca/server.key.pem"], [""])
else
AC_MSG_RESULT(not found)
AC_MSG_ERROR([openssl not found, aborting])
fi
AM_CONDITIONAL([HAVE_OPENSSL], [test "$ssl_detected" = yes])
@@ -96,21 +96,21 @@ using namespace rofl;
for (uint32_t i = cthread::pool_mgt_loop_index;
i < cthread::pool_io_loop_index; ++i) {
std::stringstream thread_name;
thread_name << "thread(" << (unsigned int)i << ")-mgt";
thread_name << "rofl-mgt-(" << (unsigned int)i << ")";
(cthread::pool[i] = new cthread(i))->start(thread_name.str());
}
for (uint32_t i = cthread::pool_io_loop_index;
i < (cthread::pool_hnd_loop_index); ++i) {
std::stringstream thread_name;
thread_name << "thread(" << (unsigned int)i << ")-io";
thread_name << "rofl-io-(" << (unsigned int)i << ")";
(cthread::pool[i] = new cthread(i))->start(thread_name.str());
}
for (uint32_t i = cthread::pool_hnd_loop_index;
i < (cthread::pool_num_mgt_threads + cthread::pool_num_io_threads +
cthread::pool_num_hnd_threads);
++i) {
std::stringstream thread_name;
thread_name << "thread(" << (unsigned int)i << ")-hnd";
thread_name << "rofl-app-(" << (unsigned int)i << ")";
(cthread::pool[i] = new cthread(i))->start(thread_name.str());
}
cthread::pool_initialized = true;

0 comments on commit 4c794e9

Please sign in to comment.