threads: add waiting_on()
[c11tester.git] / threads-model.h
index 2cd09ab53739de7d327de3e5758af6b7ba66465d..b15c40944aedadb3114d1239d1f16b6259e51535 100644 (file)
@@ -104,6 +104,8 @@ public:
         *  @see Thread::pending */
        void set_pending(ModelAction *act) { pending = act; }
 
         *  @see Thread::pending */
        void set_pending(ModelAction *act) { pending = act; }
 
+       Thread * waiting_on() const;
+
        /**
         * Remove one ModelAction from the waiting list
         * @return The ModelAction that was removed from the waiting list
        /**
         * Remove one ModelAction from the waiting list
         * @return The ModelAction that was removed from the waiting list