//-----------------------------------------------------------
// Copyright Christian Arnault LAL-Orsay CNRS
// arnault@lal.in2p3.fr
// See the complete license in cmt_license.txt "http://www.cecill.info". 
//-----------------------------------------------------------

#ifndef __cmt_lock_h__
#define __cmt_lock_h__

class CmtLock
{
public:
	typedef enum 
	{
		locked_by_user, 
		locked_by_another_user, 
		not_locked,
		still_locked,
		still_unlocked
	} status;

	static status lock ();
	static status unlock ();
	static status check ();
};

#endif
