Back to index

lightning-sunbird  0.9+nobinonly
Functions
rcmon.h File Reference
#include "rcbase.h"
#include "rcinrval.h"

Go to the source code of this file.

Functions

class PR_IMPLEMENT (RCMonitor)

Function Documentation

class PR_IMPLEMENT ( RCMonitor  )

Definition at line 52 of file rcmon.h.

                             : public RCBase
{
public:
    RCMonitor();                    /* timeout is infinity */
    virtual ~RCMonitor();

    virtual void Enter();           /* reentrant entry */
    virtual void Exit();

    virtual void Notify();          /* possibly enable one thread */
    virtual void NotifyAll();       /* enable all waiters */

    virtual void Wait();            /* applies object's timeout */

    virtual void SetTimeout(const RCInterval& timeout);

private:
    PRMonitor *monitor;
    RCInterval timeout;

public:
    RCInterval GetTimeout() const;  /* get the current value */

};  /* RCMonitor */