gsdx-recorder: use recursive mutex

This commit is contained in:
Gregory Hainaut 2015-05-14 11:56:07 +02:00
parent bd96a73580
commit 6d8695127f
2 changed files with 4 additions and 4 deletions

View File

@ -387,7 +387,7 @@ GSCapture::~GSCapture()
bool GSCapture::BeginCapture(float fps)
{
#ifdef _CX11_
std::lock_guard<std::mutex> lock(m_lock);
std::lock_guard<std::recursive_mutex> lock(m_lock);
#else
GSAutoLock lock(&m_lock);
#endif
@ -486,7 +486,7 @@ bool GSCapture::BeginCapture(float fps)
bool GSCapture::DeliverFrame(const void* bits, int pitch, bool rgba)
{
#ifdef _CX11_
std::lock_guard<std::mutex> lock(m_lock);
std::lock_guard<std::recursive_mutex> lock(m_lock);
#else
GSAutoLock lock(&m_lock);
#endif
@ -515,7 +515,7 @@ bool GSCapture::DeliverFrame(const void* bits, int pitch, bool rgba)
bool GSCapture::EndCapture()
{
#ifdef _CX11_
std::lock_guard<std::mutex> lock(m_lock);
std::lock_guard<std::recursive_mutex> lock(m_lock);
#else
GSAutoLock lock(&m_lock);
#endif

View File

@ -33,7 +33,7 @@
class GSCapture
{
#ifdef _CX11_
std::mutex m_lock;
std::recursive_mutex m_lock;
#else
GSCritSec m_lock;
#endif