Back to index

lightning-sunbird  0.9+nobinonly
Functions
rccv.h File Reference
#include "rclock.h"
#include "rcbase.h"
#include "rcinrval.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

class PR_IMPLEMENT (RCCondition)

Function Documentation

class PR_IMPLEMENT ( RCCondition  )

Definition at line 64 of file rccv.h.

                               : public RCBase
{
public:
    RCCondition(RCLock*);           /* associates CV with a lock and infinite tmo */
    virtual ~RCCondition();

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

    virtual PRStatus Notify();      /* perhaps ready one thread */
    virtual PRStatus Broadcast();   /* perhaps ready many threads */

    virtual PRStatus SetTimeout(const RCInterval&);
                                    /* set object's current timeout value */

private:
    PRCondVar *cv;
    RCInterval timeout;

    RCCondition();
    RCCondition(const RCCondition&);
    void operator=(const RCCondition&);

public:
    RCInterval GetTimeout() const;
};  /* RCCondition */