All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions
DinverCore::ForwardSignal Class Reference

Let forward thread emit a signal at end to wake main loop. More...

#include <ForwardSignal.h>

List of all members.

Public Member Functions

void finished (AbstractForward *f)
 ForwardSignal ()
void lock ()
void unlock ()
AbstractForwardwait ()
 ~ForwardSignal ()

Detailed Description

Let forward thread emit a signal at end to wake main loop.

Full description of class still missing


Constructor & Destructor Documentation

{_forward=0;}
{}

Member Function Documentation

Referenced by DinverCore::AbstractForward::abort(), DinverCore::AbstractForward::send(), and DinverCore::Neighborhood::terminate().

{
  _mutex.lock();
  _forward=f;
  _condition.wakeOne();
  _mutex.unlock();
}
{_mutex.lock();}
{_mutex.unlock();}
{
  _condition.wait(&_mutex);
  AbstractForward * f=_forward;
  _forward=0;
  _mutex.unlock();
  return f;
}

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines