DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L1841
Version: 2.0-feature


ATM I use this:

namespace fltk{
    struct FltkGuard{
        FltkGuard(){fltk::lock();}
        ~FltkGuard(){fltk::unlock();}
    };
    struct FltkUnguard{
        FltkUnguard(){fltk::unlock();}
        ~FltkUnguard(){fltk::lock();}
    };
    class Unguard{
        fltk::Mutex *mutex;
    public:
        Unguard(fltk::Mutex &m):mutex(&m){mutex->unlock();}
        Unguard(fltk::Mutex *m):mutex(m){mutex->unlock();}
        ~Unguard(){mutex->lock();}
    };
}


Link: http://www.fltk.org/str.php?L1841
Version: 2.0-feature

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to