|
|
@@ -76,14 +76,14 @@ namespace Ogre {
|
|
|
VertexDeclaration* HardwareBufferManagerBase::createVertexDeclaration(void)
|
|
|
{
|
|
|
VertexDeclaration* decl = createVertexDeclarationImpl();
|
|
|
- OGRE_LOCK_MUTEX(mVertexDeclarationsMutex)
|
|
|
+ CM_LOCK_MUTEX(mVertexDeclarationsMutex)
|
|
|
mVertexDeclarations.insert(decl);
|
|
|
return decl;
|
|
|
}
|
|
|
//-----------------------------------------------------------------------
|
|
|
void HardwareBufferManagerBase::destroyVertexDeclaration(VertexDeclaration* decl)
|
|
|
{
|
|
|
- OGRE_LOCK_MUTEX(mVertexDeclarationsMutex)
|
|
|
+ CM_LOCK_MUTEX(mVertexDeclarationsMutex)
|
|
|
mVertexDeclarations.erase(decl);
|
|
|
destroyVertexDeclarationImpl(decl);
|
|
|
}
|
|
|
@@ -91,14 +91,14 @@ namespace Ogre {
|
|
|
VertexBufferBinding* HardwareBufferManagerBase::createVertexBufferBinding(void)
|
|
|
{
|
|
|
VertexBufferBinding* ret = createVertexBufferBindingImpl();
|
|
|
- OGRE_LOCK_MUTEX(mVertexBufferBindingsMutex)
|
|
|
+ CM_LOCK_MUTEX(mVertexBufferBindingsMutex)
|
|
|
mVertexBufferBindings.insert(ret);
|
|
|
return ret;
|
|
|
}
|
|
|
//-----------------------------------------------------------------------
|
|
|
void HardwareBufferManagerBase::destroyVertexBufferBinding(VertexBufferBinding* binding)
|
|
|
{
|
|
|
- OGRE_LOCK_MUTEX(mVertexBufferBindingsMutex)
|
|
|
+ CM_LOCK_MUTEX(mVertexBufferBindingsMutex)
|
|
|
mVertexBufferBindings.erase(binding);
|
|
|
destroyVertexBufferBindingImpl(binding);
|
|
|
}
|
|
|
@@ -125,7 +125,7 @@ namespace Ogre {
|
|
|
//-----------------------------------------------------------------------
|
|
|
void HardwareBufferManagerBase::destroyAllDeclarations(void)
|
|
|
{
|
|
|
- OGRE_LOCK_MUTEX(mVertexDeclarationsMutex)
|
|
|
+ CM_LOCK_MUTEX(mVertexDeclarationsMutex)
|
|
|
VertexDeclarationList::iterator decl;
|
|
|
for (decl = mVertexDeclarations.begin(); decl != mVertexDeclarations.end(); ++decl)
|
|
|
{
|
|
|
@@ -136,7 +136,7 @@ namespace Ogre {
|
|
|
//-----------------------------------------------------------------------
|
|
|
void HardwareBufferManagerBase::destroyAllBindings(void)
|
|
|
{
|
|
|
- OGRE_LOCK_MUTEX(mVertexBufferBindingsMutex)
|
|
|
+ CM_LOCK_MUTEX(mVertexBufferBindingsMutex)
|
|
|
VertexBufferBindingList::iterator bind;
|
|
|
for (bind = mVertexBufferBindings.begin(); bind != mVertexBufferBindings.end(); ++bind)
|
|
|
{
|
|
|
@@ -154,9 +154,9 @@ namespace Ogre {
|
|
|
// makeBufferCopy / createVertexBuffer
|
|
|
// this prevents a deadlock in _notifyVertexBufferDestroyed
|
|
|
// which locks the same mutexes (via other methods) but in reverse order
|
|
|
- OGRE_LOCK_MUTEX(mVertexBuffersMutex)
|
|
|
+ CM_LOCK_MUTEX(mVertexBuffersMutex)
|
|
|
{
|
|
|
- OGRE_LOCK_MUTEX(mTempBuffersMutex)
|
|
|
+ CM_LOCK_MUTEX(mTempBuffersMutex)
|
|
|
HardwareVertexBufferPtr vbuf;
|
|
|
|
|
|
// Locate existing buffer copy in temporary vertex buffers
|
|
|
@@ -179,7 +179,7 @@ namespace Ogre {
|
|
|
//-----------------------------------------------------------------------
|
|
|
void HardwareBufferManagerBase::_notifyVertexBufferDestroyed(HardwareVertexBuffer* buf)
|
|
|
{
|
|
|
- OGRE_LOCK_MUTEX(mVertexBuffersMutex)
|
|
|
+ CM_LOCK_MUTEX(mVertexBuffersMutex)
|
|
|
|
|
|
VertexBufferList::iterator i = mVertexBuffers.find(buf);
|
|
|
if (i != mVertexBuffers.end())
|
|
|
@@ -191,7 +191,7 @@ namespace Ogre {
|
|
|
//-----------------------------------------------------------------------
|
|
|
void HardwareBufferManagerBase::_notifyIndexBufferDestroyed(HardwareIndexBuffer* buf)
|
|
|
{
|
|
|
- OGRE_LOCK_MUTEX(mIndexBuffersMutex)
|
|
|
+ CM_LOCK_MUTEX(mIndexBuffersMutex)
|
|
|
|
|
|
IndexBufferList::iterator i = mIndexBuffers.find(buf);
|
|
|
if (i != mIndexBuffers.end())
|