00001 #ifndef __cmt_lock_h__ 00002 #define __cmt_lock_h__ 00003 00004 class CmtLock 00005 { 00006 public: 00007 typedef enum 00008 { 00009 locked_by_user, 00010 locked_by_another_user, 00011 not_locked, 00012 still_locked, 00013 still_unlocked 00014 } status; 00015 00016 static status lock (); 00017 static status unlock (); 00018 static status check (); 00019 }; 00020 00021 #endif