mirror of https://github.com/PCSX2/pcsx2.git
Merge pull request #542 from PCSX2/gsdx-issue-539
gsdx-recorder: use recursive mutex
This commit is contained in:
commit
7f2bbdceb9
|
@ -387,7 +387,7 @@ GSCapture::~GSCapture()
|
||||||
bool GSCapture::BeginCapture(float fps)
|
bool GSCapture::BeginCapture(float fps)
|
||||||
{
|
{
|
||||||
#ifdef _CX11_
|
#ifdef _CX11_
|
||||||
std::lock_guard<std::mutex> lock(m_lock);
|
std::lock_guard<std::recursive_mutex> lock(m_lock);
|
||||||
#else
|
#else
|
||||||
GSAutoLock lock(&m_lock);
|
GSAutoLock lock(&m_lock);
|
||||||
#endif
|
#endif
|
||||||
|
@ -486,7 +486,7 @@ bool GSCapture::BeginCapture(float fps)
|
||||||
bool GSCapture::DeliverFrame(const void* bits, int pitch, bool rgba)
|
bool GSCapture::DeliverFrame(const void* bits, int pitch, bool rgba)
|
||||||
{
|
{
|
||||||
#ifdef _CX11_
|
#ifdef _CX11_
|
||||||
std::lock_guard<std::mutex> lock(m_lock);
|
std::lock_guard<std::recursive_mutex> lock(m_lock);
|
||||||
#else
|
#else
|
||||||
GSAutoLock lock(&m_lock);
|
GSAutoLock lock(&m_lock);
|
||||||
#endif
|
#endif
|
||||||
|
@ -515,7 +515,7 @@ bool GSCapture::DeliverFrame(const void* bits, int pitch, bool rgba)
|
||||||
bool GSCapture::EndCapture()
|
bool GSCapture::EndCapture()
|
||||||
{
|
{
|
||||||
#ifdef _CX11_
|
#ifdef _CX11_
|
||||||
std::lock_guard<std::mutex> lock(m_lock);
|
std::lock_guard<std::recursive_mutex> lock(m_lock);
|
||||||
#else
|
#else
|
||||||
GSAutoLock lock(&m_lock);
|
GSAutoLock lock(&m_lock);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
class GSCapture
|
class GSCapture
|
||||||
{
|
{
|
||||||
#ifdef _CX11_
|
#ifdef _CX11_
|
||||||
std::mutex m_lock;
|
std::recursive_mutex m_lock;
|
||||||
#else
|
#else
|
||||||
GSCritSec m_lock;
|
GSCritSec m_lock;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue