#include <p6lock.h>
Inherits P6R::p6ICom.
Public Member Functions | |
virtual P6INT32 | addref (void)=0 |
virtual P6R::P6ERR | initialize (void)=0 |
virtual P6R::P6ERR | lock (void)=0 |
virtual P6R::P6ERR | queryInterface (const P6R::P6IID &iid, P6VOID **ppIface)=0 |
virtual P6INT32 | release (void)=0 |
virtual P6R::P6ERR | unlock (void)=0 |
Non-reentrant, mutual exclusion lock.
This lock can be used to protect both code and data, Care must be taken however because this lock is not reentrant which means that the same thread can not grab the lock more than once. If a reentrant lock is what you need, then