41 #ifdef G4MULTITHREADED
55 std::ostream*& _G4cout_p()
61 std::ostream*& _G4cerr_p()
67 #define G4coutbuf (*_G4coutbuf_p())
68 #define G4cerrbuf (*_G4cerrbuf_p())
69 #define G4cout (*_G4cout_p())
70 #define G4cerr (*_G4cerr_p())
76 if (_G4cout_p() == &std::cout || _G4cout_p() == 0) _G4cout_p() =
new std::ostream(_G4coutbuf_p());
77 if (_G4cerr_p() == &std::cerr || _G4cerr_p() == 0) _G4cerr_p() =
new std::ostream(_G4cerrbuf_p());
82 delete _G4cout_p(); _G4cout_p() = &std::cout;
83 delete _G4cerr_p(); _G4cerr_p() = &std::cerr;
84 delete _G4coutbuf_p(); _G4coutbuf_p() =
nullptr;
85 delete _G4cerrbuf_p(); _G4cerrbuf_p() =
nullptr;
93 void setupG4ioSystem(
void) __attribute__ ((constructor));
94 void cleanupG4ioSystem(
void) __attribute__((destructor));
void G4iosInitialization()
#define G4ThreadLocalStatic
G4GLOB_DLL std::ostream G4cerr
G4GLOB_DLL std::ostream G4cout