]> rtime.felk.cvut.cz Git - l4.git/blobdiff - l4/pkg/plr/server/src/fault_observers
update
[l4.git] / l4 / pkg / plr / server / src / fault_observers
index 04e4245a05e87ef7989e8c3b4e2040e2d74c0fa1..23bddfbff0212bb36a98a45a91756605e856ed1b 100644 (file)
@@ -7,7 +7,7 @@
  *    Definition of the generic fault handling class as well as
  *    specific sub-classes.
  *
- * (c) 2011 Björn Döbel <doebel@os.inf.tu-dresden.de>,
+ * (c) 2011-2012 Björn Döbel <doebel@os.inf.tu-dresden.de>,
  *     economic rights: Technische Universität Dresden (Germany)
  * This file is part of TUD:OS and distributed under the terms of the
  * GNU General Public License 2.
@@ -25,6 +25,8 @@ namespace Romain
        class App_model;
        class App_instance;
        class App_thread;
+       class Thread_group;
+
 /* Make this a macro because every sub-class will have to define
  * these two virtual functions.
  */
@@ -32,16 +34,19 @@ namespace Romain
                public: \
                        virtual void startup_notify(Romain::App_instance *i, \
                                                    Romain::App_thread *t, \
+                                                   Romain::Thread_group *tg, \
                                                    Romain::App_model *a); \
                        virtual ObserverReturnVal notify(Romain::App_instance *i, \
                                                         Romain::App_thread *t, \
+                                                        Romain::Thread_group *tg, \
                                                         Romain::App_model *a); \
                        virtual char const * name() const { return _name_; } \
                        virtual void status() const;
 
 
 #define DEFINE_EMPTY_STARTUP(name) \
-       void Romain::name::startup_notify(Romain::App_instance*, Romain::App_thread*, Romain::App_model*) { }
+       void Romain::name::startup_notify(Romain::App_instance*, Romain::App_thread*, \
+                                         Romain::Thread_group*, Romain::App_model*) { }
 
        /*
         * Generic observer class.
@@ -118,6 +123,7 @@ namespace Romain
                         */
                        virtual void startup_notify(Romain::App_instance *i = 0,
                                                    Romain::App_thread *t = 0,
+                                                   Romain::Thread_group *tg = 0,
                                                    Romain::App_model *a = 0) = 0;
 
                        /*
@@ -126,6 +132,7 @@ namespace Romain
                         */
                        virtual ObserverReturnVal notify(Romain::App_instance *i = 0,
                                                         Romain::App_thread *t = 0,
+                                                        Romain::Thread_group *tg = 0,
                                                         Romain::App_model *a = 0) = 0;
 
                        /*