Back to index

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

Go to the source code of this file.

Functions

class PR_IMPLEMENT (RCLock)
class PR_IMPLEMENT (RCEnter)

Function Documentation

class PR_IMPLEMENT ( RCLock  )

Definition at line 50 of file rclock.h.

                          : public RCBase
{
public:
    RCLock();
    virtual ~RCLock();

    void Acquire();                 /* non-reentrant */
    void Release();                 /* should be by owning thread */

    friend class RCCondition;

private:
    RCLock(const RCLock&);          /* can't do that */
    void operator=(const RCLock&);  /* nor that */

    PRLock *lock;
};  /* RCLock */
class PR_IMPLEMENT ( RCEnter  )

Definition at line 75 of file rclock.h.

{
public:
    ~RCEnter();                     /* releases the lock */
    RCEnter(RCLock*);               /* acquires the lock */

private:
    RCLock *lock;

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

    void *operator new(PRSize) { return NULL; }
    void operator delete(void*) { }
};  /* RCEnter */

Here is the call graph for this function: