OOStuBS - Technische Informatik II (TI-II)  2.4
interruptLock.h
gehe zur Dokumentation dieser Datei
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
2  * Technische Informatik II *
3  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
4  * *
5  * I N T E R R U P T - L O C K *
6  * *
7 \* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
8 
9 #ifndef __interrupt_lock_header__
10 #define __interrupt_lock_header__
11 
12 /* * * * * * * * * * * * * * * * * * * * * * * * *\
13 # INCLUDES #
14 \* * * * * * * * * * * * * * * * * * * * * * * * */
15 #include "locking/lock.h"
16 
17 extern "C" void exception(unsigned short, void**);
18 
19 /* * * * * * * * * * * * * * * * * * * * * * * * *\
20 # CLASSES #
21 \* * * * * * * * * * * * * * * * * * * * * * * * */
22 
29 class InterruptLock : public Lock
30 {
31  private:
41 
43  void enter();
44 
46  void leave();
47 
48  public:
51 
59  virtual void lock();
60 
67  virtual void unlock();
68 
69  friend void exception(unsigned short,void**);
70 };
71 
72 #endif