fltk::Guard Class Reference

#include <Threads.h>

List of all members.

Detailed Description

C++ convienence object for locking a Mutex. Creating a local one of these will lock() the mutex and it means unlock() will be called no matter how a function exits, because the destructor ~Guard() does an unlock().

   static fltk::Mutex mutex;
   function() {
     fltk::Guard guard(mutex);
     if (test()) return;

The documentation for this class was generated from the following file: