pdf::Cond Class Reference

#include <condition.h>

Public Member Functions

 Cond ()
 ~Cond ()
void signal ()
void wait (GMutex *m)

Detailed Description

Definition at line 35 of file condition.h.


Constructor & Destructor Documentation

pdf::Cond::Cond (  )  [inline]

Definition at line 38 of file condition.h.

00039         : cond_(0)
00040     {
00041         cond_  = g_cond_new();
00042     }

pdf::Cond::~Cond (  )  [inline]

Definition at line 44 of file condition.h.

00045     {
00046         g_cond_free(cond_);
00047     }


Member Function Documentation

void pdf::Cond::signal (  )  [inline]

Definition at line 49 of file condition.h.

Referenced by pdf::Thread::append_task(), pdf::Thread::prepend_task(), and pdf::Thread::stop().

00050     {
00051         // TODO. Do we have to lock here?
00052         g_cond_signal(cond_);
00053     }

Here is the caller graph for this function:

void pdf::Cond::wait ( GMutex *  m  )  [inline]

Definition at line 55 of file condition.h.

00056     {
00057         if (m != 0)
00058         {
00059             g_cond_wait(cond_, m);
00060         }
00061     }


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