00001 //----------------------------------------------------------- 00002 // Copyright Christian Arnault LAL-Orsay CNRS 00003 // arnault@lal.in2p3.fr 00004 // See the complete license in cmt_license.txt "http://www.cecill.info". 00005 //----------------------------------------------------------- 00006 00007 #ifndef __cmt_lock_h__ 00008 #define __cmt_lock_h__ 00009 00010 class CmtLock 00011 { 00012 public: 00013 typedef enum 00014 { 00015 locked_by_user, 00016 locked_by_another_user, 00017 not_locked, 00018 still_locked, 00019 still_unlocked 00020 } status; 00021 00022 static status lock (); 00023 static status unlock (); 00024 static status check (); 00025 }; 00026 00027 #endif