Skip to content

Commit

Permalink
Add cpu index to thread id logging
Browse files Browse the repository at this point in the history
  • Loading branch information
biddisco committed Aug 5, 2017
1 parent a8f7009 commit ecb798f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/parcelport/parcelport_logging.hpp
Expand Up @@ -19,7 +19,7 @@
#include <hpx/util/detail/pp/stringize.hpp>
//
#include <boost/preprocessor.hpp>

#include <sched.h>
// ------------------------------------------------------------------
// Set flags to help simplify the log defines
// ------------------------------------------------------------------
Expand Down Expand Up @@ -103,7 +103,7 @@ namespace detail {
hpx::this_thread::get_id().native_handle().get();
os << hexpointer(dummy);
}
os << nhex(12) << std::this_thread::get_id();
os << nhex(12) << std::this_thread::get_id() << " cpu " << decnumber(sched_getcpu());
return os;
}

Expand Down

0 comments on commit ecb798f

Please sign in to comment.