source: CMT/v1r18p20041201/source/cmt_lock.h @ 1

Last change on this file since 1 was 1, checked in by arnault, 19 years ago

Import all tags

File size: 576 bytes
Line 
1//-----------------------------------------------------------
2// Copyright Christian Arnault LAL-Orsay CNRS
3// arnault@lal.in2p3.fr
4// See the complete license in cmt_license.txt "http://www.cecill.info".
5//-----------------------------------------------------------
6
7#ifndef __cmt_lock_h__
8#define __cmt_lock_h__
9
10class CmtLock
11{
12public:
13        typedef enum 
14        {
15                locked_by_user, 
16                locked_by_another_user, 
17                not_locked,
18                still_locked,
19                still_unlocked
20        } status;
21
22        static status lock ();
23        static status unlock ();
24        static status check ();
25};
26
27#endif
Note: See TracBrowser for help on using the repository browser.