X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fmainloop.hpp;h=a69baafb2dfb2701ce42ce1af7fcc4093380eea7;hb=339968d0eb222f5cad1397580631ab44acf40b10;hp=db961e06be27976d138f925317d82e2240766783;hpb=690ac9e5920c8d3dd0a8a14a7bd163eaf52ce689;p=supertux.git diff --git a/src/mainloop.hpp b/src/mainloop.hpp index db961e06b..a69baafb2 100644 --- a/src/mainloop.hpp +++ b/src/mainloop.hpp @@ -21,6 +21,7 @@ #include #include +#include "scripting/thread_queue.hpp" class Screen; class Console; @@ -32,7 +33,7 @@ class MainLoop public: MainLoop(); ~MainLoop(); - + void run(); void exit_screen(ScreenFade* fade = NULL); void quit(ScreenFade* fade = NULL); @@ -42,9 +43,12 @@ 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; @@ -59,4 +63,3 @@ private: extern MainLoop* main_loop; #endif -