diff options
Diffstat (limited to 'nsprpub/pr/src/cplus/rclock.h')
-rw-r--r-- | nsprpub/pr/src/cplus/rclock.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/nsprpub/pr/src/cplus/rclock.h b/nsprpub/pr/src/cplus/rclock.h index 511b6fa4b..c86c2f17b 100644 --- a/nsprpub/pr/src/cplus/rclock.h +++ b/nsprpub/pr/src/cplus/rclock.h @@ -53,13 +53,21 @@ private: RCEnter(const RCEnter&); void operator=(const RCEnter&); - void *operator new(PRSize) { return NULL; } + void *operator new(PRSize) { + return NULL; + } void operator delete(void*) { } }; /* RCEnter */ -inline RCEnter::RCEnter(RCLock* ml) { lock = ml; lock->Acquire(); } -inline RCEnter::~RCEnter() { lock->Release(); lock = NULL; } +inline RCEnter::RCEnter(RCLock* ml) { + lock = ml; + lock->Acquire(); +} +inline RCEnter::~RCEnter() { + lock->Release(); + lock = NULL; +} #endif /* defined(_RCLOCK_H) */ |