X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fasyncrenderer.h;h=6678e4efa74655d5eba8b5a86d63bcc0a1639572;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=59f96a99eaf021edc09fd4d403c685fc8e4ca829;hpb=c34eaa5441242b3e9a7b7645e9ee4983d14eae85;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/asyncrenderer.h b/synfig-studio/trunk/src/gtkmm/asyncrenderer.h index 59f96a9..6678e4e 100644 --- a/synfig-studio/trunk/src/gtkmm/asyncrenderer.h +++ b/synfig-studio/trunk/src/gtkmm/asyncrenderer.h @@ -2,10 +2,11 @@ /*! \file asyncrenderer.h ** \brief Template Header ** -** $Id: asyncrenderer.h,v 1.3 2005/01/12 07:03:42 darco Exp $ +** $Id$ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2007 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -42,6 +43,12 @@ /* === M A C R O S ========================================================= */ +// uncomment to use a single thread, and hopefully get more stability +// #define SINGLE_THREADED +#ifdef SINGLE_THREADED +# define single_threaded() App::single_threaded +#endif + /* === T Y P E D E F S ===================================================== */ /* === C L A S S E S & S T R U C T S ======================================= */ @@ -83,6 +90,10 @@ public: void stop(); void pause(); void resume(); +#ifdef SINGLE_THREADED + void rendering_progress(); + bool updating; +#endif bool has_error()const { return error; } bool has_success()const { return success; }