40 #ifdef G4MULTITHREADED
45 #define G4coutbuf (*G4coutbuf_p)
46 #define G4cerrbuf (*G4cerrbuf_p)
47 #define G4cout (*G4cout_p)
48 #define G4cerr (*G4cerr_p)
54 if (G4cout_p == 0) G4cout_p =
new std::ostream(G4coutbuf_p);
55 if (G4cerr_p == 0) G4cerr_p =
new std::ostream(G4cerrbuf_p);
60 delete G4cout_p; G4cout_p = 0;
61 delete G4cerr_p; G4cerr_p = 0;
62 delete G4coutbuf_p; G4coutbuf_p = 0;
63 delete G4cerrbuf_p; G4cerrbuf_p = 0;
71 void setupG4ioSystem(
void) __attribute__ ((constructor));
72 void cleanupG4ioSystem(
void) __attribute__((destructor));
void G4iosInitialization()
G4GLOB_DLL std::ostream G4cout
G4GLOB_DLL std::ostream G4cerr