~mysql/mysql-server/mysql-6.0

« back to all changes in this revision

Viewing changes to storage/falcon/CycleLock.h

auto-merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _CYCLE_LOCK_H_
 
2
#define _CYCLE_LOCK_H_
 
3
 
 
4
class SyncObject;
 
5
class CycleManager;
 
6
class Database;
 
7
class Thread;
 
8
 
 
9
class CycleLock
 
10
{
 
11
public:
 
12
        CycleLock(Database *database);
 
13
        ~CycleLock(void);
 
14
        
 
15
        static CycleLock*       unlock(void);
 
16
        static bool                     isLocked(void);
 
17
 
 
18
        void                            lockCycle(void);
 
19
        void                            unlockCycle(void);
 
20
 
 
21
        SyncObject                      *syncObject;
 
22
        CycleManager            *cycleManager;
 
23
        CycleLock                       *chain;
 
24
        Thread                          *thread;
 
25
        bool                            locked;
 
26
};
 
27
 
 
28
#endif