8 #ifndef cf3_common_PE_debug_HPP
9 #define cf3_common_PE_debug_HPP
14 #include <boost/thread/thread.hpp>
26 if(rank >= 0 && rank != irank)
31 std::cout <<
"Rank " << irank <<
" with PID " << getpid() <<
" is waiting for debugger attach" << std::endl;
32 while (0 != stopped && i++ < 80)
33 boost::this_thread::sleep(boost::posix_time::milliseconds(250));
43 #endif // cf3_common_PE_debug_HPP
Uint rank() const
Return rank, additionally, if is_init==0.
Top-level namespace for coolfluid.
void wait_for_debugger(const int rank)
unsigned int Uint
typedef for unsigned int
static Comm & instance()
Return a reference to the current PE.