notepad::Mutex Class Reference

#include <notepad_commandqueue.h>

Public Member Functions

 Mutex ()
 ~Mutex ()
void lock ()
void unlock ()
GMutex * get_gmutex ()

Detailed Description

Definition at line 45 of file notepad_commandqueue.h.


Constructor & Destructor Documentation

notepad::Mutex::Mutex (  )  [inline]

Definition at line 48 of file notepad_commandqueue.h.

00049             {
00050                 if (!g_thread_supported ()) g_thread_init (NULL);
00051                 mutex_ = g_mutex_new(); 
00052             }

notepad::Mutex::~Mutex (  )  [inline]

Definition at line 53 of file notepad_commandqueue.h.

00053 { g_mutex_free(mutex_); }


Member Function Documentation

GMutex* notepad::Mutex::get_gmutex (  )  [inline]

Definition at line 57 of file notepad_commandqueue.h.

00057 { return mutex_; }

void notepad::Mutex::lock ( void   )  [inline]

Definition at line 55 of file notepad_commandqueue.h.

Referenced by notepad::MutexLocker::MutexLocker().

00055 { g_mutex_lock(mutex_); }

Here is the caller graph for this function:

void notepad::Mutex::unlock ( void   )  [inline]

Definition at line 56 of file notepad_commandqueue.h.

Referenced by notepad::MutexLocker::~MutexLocker().

00056 { g_mutex_unlock(mutex_); }

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
Generated by  doxygen 1.6.2-20100208