My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
IoLock.h File Reference
#include "gcp/util/common/Mutex.h"

Go to the source code of this file.

Classes

class  gcp::util::IoLock
 

Macros

#define IOCOUT(statement)
 
#define IOCTOUT(statement)
 
#define IOCERR(statement)
 

Detailed Description

Tagged: Sat May 8 08:22:36 PDT 2004

Author
Erik Leitch

Macro Definition Documentation

#define IOCERR (   statement)
Value:
{\
gcp::util::IoLock::lockCerr(); \
std::cerr << statement << std::endl; \
gcp::util::IoLock::unlockCerr(); \
}
#define IOCOUT (   statement)
Value:
{\
gcp::util::IoLock::lockCout(); \
std::cout << statement << std::endl; \
gcp::util::IoLock::unlockCout(); \
}
#define IOCTOUT (   statement)
Value:
{\
gcp::util::TimeVal timeVal;\
timeVal.setToCurrentTime();\
gcp::util::IoLock::lockCout(); \
std::cout << timeVal << ": " << statement << std::endl; \
gcp::util::IoLock::unlockCout(); \
}