mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
Replaced Common::CriticalSection with a std::mutex implementation. 64bit Windows builds now use SRWLocks and ConditionVariables(requires Vista/7, x64 builds will no longer work on Windows XP x64). Tell me if you hate that. Removed Common::EventEx. Common::Event now uses a std::condition_variable impl.(using ConditionVariables on Windows x64, Events on x86, or posix condition variables elsewhere). I experience slight speed improvements with these changes.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7294 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -75,19 +75,6 @@ enum
|
||||
CON_ERR_VERSION_MISMATCH
|
||||
};
|
||||
|
||||
// something like this should be in Common stuff
|
||||
class CritLocker
|
||||
{
|
||||
public:
|
||||
//CritLocker(const CritLocker&);
|
||||
CritLocker& operator=(const CritLocker&);
|
||||
CritLocker(Common::CriticalSection& crit) : m_crit(crit) { m_crit.Enter(); }
|
||||
~CritLocker() { m_crit.Leave(); }
|
||||
|
||||
private:
|
||||
Common::CriticalSection& m_crit;
|
||||
};
|
||||
|
||||
class NetPlayUI
|
||||
{
|
||||
public:
|
||||
@ -135,9 +122,9 @@ protected:
|
||||
|
||||
struct
|
||||
{
|
||||
Common::CriticalSection game;
|
||||
std::recursive_mutex game;
|
||||
// lock order
|
||||
Common::CriticalSection players, send;
|
||||
std::recursive_mutex players, send;
|
||||
} m_crit;
|
||||
|
||||
class Player
|
||||
|
Reference in New Issue
Block a user