pcsx2: remove useless volatile

Volatile is only useful as argument not the returned value
This commit is contained in:
Gregory Hainaut 2014-04-14 20:23:11 +02:00
parent dd8666036c
commit 4d6d5c870c
2 changed files with 5 additions and 5 deletions

View File

@ -179,12 +179,12 @@ void VU_Thread::ReserveSpace(s32 size)
}
// Use this when reading read_pos from ee thread
__fi volatile s32 VU_Thread::GetReadPos()
__fi s32 VU_Thread::GetReadPos()
{
return AtomicRead(read_pos);
}
// Use this when reading write_pos from vu thread
__fi volatile s32 VU_Thread::GetWritePos()
__fi s32 VU_Thread::GetWritePos()
{
return AtomicRead(volatize(write_pos));
}
@ -354,4 +354,4 @@ void VU_Thread::WriteRow(vifStruct& _vif)
Write(MTVU_VIF_WRITE_ROW);
Write(&_vif.MaskRow, sizeof(_vif.MaskRow));
incWritePos();
}
}

View File

@ -83,8 +83,8 @@ private:
void WaitOnSize(s32 size);
void ReserveSpace(s32 size);
volatile s32 GetReadPos();
volatile s32 GetWritePos();
s32 GetReadPos();
s32 GetWritePos();
u32* GetWritePtr();
void incReadPos(s32 offset);