UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Lock.H
1 /* Lock.H */
2 /* $Id: Lock.H,v 1.2 2003/10/22 12:58:14 vlad Exp $ */
3 #ifndef __Lock_H
4 #define __Lock_H
5 
6 #include <mix/locks.h>
7 
8 
9 class Lock;
10 
11 /* Dynamic array of pointers at locks */
12 #define PtrType Lock*
13 #define PtrAr LocksAr
14 #include <mix/PtrAr.H>
15 
16 
36 class Lock
37 {
38 public:
39 
43  Lock (); /* REDEFINE HERE */
44 
47  virtual ~Lock (); /* REDEFINE HERE */
48 
49 
51  LockId lock_id () const;
52 
53 protected:
54 
57  static LocksAr *plocksar;
58 
60  void lock ();
61 
63  void unlock ();
64 
65 private:
66 
68  LockId lockid;
69 
70 };
71 
72 
73 #endif /* Lock.H */
static LocksAr * plocksar
Definition: Lock.H:57
void lock()
LockId lock_id() const
Definition: Lock.H:36
void unlock()
virtual ~Lock()