X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fmainloop.hpp;h=47621f3480d77a43e7aa674218949f244730e821;hb=e57c65e0862b48e91fd1b24916c662dd38ec4419;hp=5e51d2df1dc37df0bb41d9fc03aa363d98e12cb4;hpb=9b58f72e1c6900540c0ee00a800ed57d2c1f4974;p=supertux.git diff --git a/src/mainloop.hpp b/src/mainloop.hpp index 5e51d2df1..47621f348 100644 --- a/src/mainloop.hpp +++ b/src/mainloop.hpp @@ -21,6 +21,7 @@ #include #include +#include "scripting/thread_queue.hpp" class Screen; class Console; @@ -42,12 +43,16 @@ public: void push_screen(Screen* screen, ScreenFade* fade = NULL); void set_screen_fade(ScreenFade* fade); + /// threads that wait for a screenswitch + Scripting::ThreadQueue waiting_threads; + private: void draw_fps(DrawingContext& context, float fps); bool running; float speed; bool nextpop; + bool nextpush; std::auto_ptr next_screen; std::auto_ptr current_screen; std::auto_ptr console;