Cleanups.

This commit is contained in:
JoelKatz
2012-01-07 14:32:29 -08:00
parent 3d8e7027e4
commit 79808e9835
2 changed files with 3 additions and 3 deletions

View File

@@ -14,11 +14,11 @@ public:
ScopedLock(boost::recursive_mutex &mutex) : ScopedLock(boost::recursive_mutex &mutex) :
mHolder(new boost::interprocess::scoped_lock<boost::recursive_mutex>(mutex)) mHolder(new boost::interprocess::scoped_lock<boost::recursive_mutex>(mutex))
{ ; } { ; }
void lock(void) const void lock() const
{ {
mHolder->lock(); mHolder->lock();
} }
void unlock(void) const void unlock() const
{ {
mHolder->unlock(); mHolder->unlock();
} }

View File

@@ -371,7 +371,7 @@ public:
return sizeof(pn); return sizeof(pn);
} }
void zero(void) void zero()
{ {
memset(&pn[0], 0, sizeof(pn)); memset(&pn[0], 0, sizeof(pn));
} }