分类:
2011-01-04 17:33:05
/***********************************************************************
* MT Control part1
*@ brief: ACE_Guard macro whth log
*
*@ author: zhengjian
*@ date: 2010-12-17
***********************************************************************/
#define JUST_RETURN
#define NO_LOG 0
#define CONA_READ_GUARD_RETURN(MUTEX, OBJ, LOCK, RETURN, PLOGMGR) \
ACE_Read_Guard< MUTEX > OBJ (LOCK); \
if (OBJ.locked () == 0){ \
if(PLOGMGR){ \
/*PLOGMGR->log log log TODO */ \
} \
return RETURN; \
}