ck-ldb/lbdb++.h

Go to the documentation of this file.
00001 #include "LBDBManager.h"
00002 
00003 
00004 inline int LDCollectingStats(LDHandle _db)
00005 {
00006 #if CMK_LBDB_ON
00007   LBDB *const db = (LBDB*)(_db.handle);
00008   return db->StatsOn();
00009 #else
00010   return 0;
00011 #endif
00012 }
00013 
00014 inline int LDRunningObject(LDHandle _h, LDObjHandle* _o)
00015 {
00016 #if CMK_LBDB_ON
00017   LBDB *const db = (LBDB*)(_h.handle);
00018 
00019   // same as LBDatabase::RunningObject
00020   if (db->ObjIsRunning()) {
00021     *_o = db->RunningObj();
00022     return 1;
00023   } else return 0;
00024 #else
00025   return 0;
00026 #endif
00027 }
00028 

Generated on Sun Jun 29 13:29:10 2008 for Charm++ by  doxygen 1.5.1