Skip to content

Commit

Permalink
build fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
aliaspider committed Oct 29, 2020
1 parent eb8dd8f commit c5188f0
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions pcsx2/MTGS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,11 @@ class RingBufferLock {
}
};

#ifdef __LIBRETRO__
void SysMtgsThread::ExecuteTaskInThread(bool flush_all)
#else
void SysMtgsThread::ExecuteTaskInThread()
#endif
{
// Threading info: run in MTGS thread
// m_ReadPos is only update by the MTGS thread so it is safe to load it with a relaxed atomic
Expand Down Expand Up @@ -589,7 +593,7 @@ void SysMtgsThread::ExecuteTaskInThread(bool flush_all)
//Console.Warning( "(MTGS Thread) Nothing to do! ringpos=0x%06x", m_ReadPos );
}
}

#ifdef __LIBRETRO__
void SysMtgsThread::StepFrame()
{
pxAssert(IsSelf());
Expand All @@ -610,6 +614,13 @@ void SysMtgsThread::Flush()
ExecuteTaskInThread(true);
}

void SysMtgsThread::SignalVsync()
{
if (m_VsyncSignalListener.exchange(false))
m_sem_Vsync.Post();
}

#endif
void SysMtgsThread::ClosePlugin()
{
#ifdef __LIBRETRO__
Expand All @@ -628,12 +639,6 @@ void SysMtgsThread::ClosePlugin()
GetCorePlugins().Close( PluginId_GS );
}

void SysMtgsThread::SignalVsync()
{
if (m_VsyncSignalListener.exchange(false))
m_sem_Vsync.Post();
}

void SysMtgsThread::OnSuspendInThread()
{
ClosePlugin();
Expand Down

0 comments on commit c5188f0

Please sign in to comment.