Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #796 from lioncash/threading
Common: Get rid of StdConditionVariable, StdMutex, and StdThread.
  • Loading branch information
lioncash committed Aug 17, 2014
2 parents 2270c3e + 1b92c68 commit ac0ac18
Show file tree
Hide file tree
Showing 19 changed files with 31 additions and 851 deletions.
5 changes: 3 additions & 2 deletions Source/Core/AudioCommon/AOSoundStream.h
Expand Up @@ -4,10 +4,11 @@

#pragma once

#include <mutex>
#include <thread>

#include "AudioCommon/SoundStream.h"
#include "Common/Event.h"
#include "Common/StdMutex.h"
#include "Common/StdThread.h"

#if defined(HAVE_AO) && HAVE_AO
#include <ao/ao.h>
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/AudioCommon/DSoundStream.cpp
Expand Up @@ -3,11 +3,11 @@
// Refer to the license.txt file included.

#include <cmath>
#include <thread>
#include <Windows.h>

#include "AudioCommon/AudioCommon.h"
#include "AudioCommon/DSoundStream.h"
#include "Common/StdThread.h"
#include "Common/Thread.h"

bool DSound::CreateBuffer()
Expand Down
3 changes: 2 additions & 1 deletion Source/Core/AudioCommon/DSoundStream.h
Expand Up @@ -4,9 +4,10 @@

#pragma once

#include <thread>

#include "AudioCommon/SoundStream.h"
#include "Common/Event.h"
#include "Common/StdThread.h"

#ifdef _WIN32
#include <Windows.h>
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/AudioCommon/Mixer.h
Expand Up @@ -4,10 +4,10 @@

#pragma once

#include <mutex>
#include <string>

#include "AudioCommon/WaveFile.h"
#include "Common/StdMutex.h"

// 16 bit Stereo
#define MAX_SAMPLES (1024 * 2) // 64ms
Expand Down
3 changes: 2 additions & 1 deletion Source/Core/AudioCommon/OpenALStream.cpp
Expand Up @@ -2,10 +2,11 @@
// Licensed under GPLv2
// Refer to the license.txt file included.

#include <thread>

#include "AudioCommon/aldlist.h"
#include "AudioCommon/DPL2Decoder.h"
#include "AudioCommon/OpenALStream.h"
#include "Common/StdThread.h"
#include "Common/Thread.h"

#if defined HAVE_OPENAL && HAVE_OPENAL
Expand Down
3 changes: 2 additions & 1 deletion Source/Core/AudioCommon/OpenALStream.h
Expand Up @@ -4,9 +4,10 @@

#pragma once

#include <thread>

#include "AudioCommon/SoundStream.h"
#include "Common/Event.h"
#include "Common/StdThread.h"
#include "Core/Core.h"
#include "Core/HW/AudioInterface.h"
#include "Core/HW/SystemTimers.h"
Expand Down
3 changes: 2 additions & 1 deletion Source/Core/AudioCommon/OpenSLESStream.h
Expand Up @@ -4,9 +4,10 @@

#pragma once

#include <thread>

#include "AudioCommon/SoundStream.h"
#include "Common/Event.h"
#include "Common/StdThread.h"

class OpenSLESStream final : public SoundStream
{
Expand Down
4 changes: 1 addition & 3 deletions Source/Core/Common/Common.vcxproj
Expand Up @@ -55,6 +55,7 @@
<ClInclude Include="FileSearch.h" />
<ClInclude Include="FileUtil.h" />
<ClInclude Include="FixedSizeQueue.h" />
<ClInclude Include="Flag.h" />
<ClInclude Include="FPURoundMode.h" />
<ClInclude Include="GekkoDisassembler.h" />
<ClInclude Include="Hash.h" />
Expand All @@ -69,10 +70,7 @@
<ClInclude Include="PcapFile.h" />
<ClInclude Include="SDCardUtil.h" />
<ClInclude Include="SettingsHandler.h" />
<ClInclude Include="StdConditionVariable.h" />
<ClInclude Include="StdMakeUnique.h" />
<ClInclude Include="StdMutex.h" />
<ClInclude Include="StdThread.h" />
<ClInclude Include="StringUtil.h" />
<ClInclude Include="SymbolDB.h" />
<ClInclude Include="SysConf.h" />
Expand Down
4 changes: 1 addition & 3 deletions Source/Core/Common/Common.vcxproj.filters
Expand Up @@ -29,6 +29,7 @@
<ClInclude Include="FileSearch.h" />
<ClInclude Include="FileUtil.h" />
<ClInclude Include="FixedSizeQueue.h" />
<ClInclude Include="Flag.h" />
<ClInclude Include="FPURoundMode.h" />
<ClInclude Include="Hash.h" />
<ClInclude Include="IniFile.h" />
Expand All @@ -42,10 +43,7 @@
<ClInclude Include="PcapFile.h" />
<ClInclude Include="SDCardUtil.h" />
<ClInclude Include="SettingsHandler.h" />
<ClInclude Include="StdConditionVariable.h" />
<ClInclude Include="StdMakeUnique.h" />
<ClInclude Include="StdMutex.h" />
<ClInclude Include="StdThread.h" />
<ClInclude Include="StringUtil.h" />
<ClInclude Include="SymbolDB.h" />
<ClInclude Include="SysConf.h" />
Expand Down
5 changes: 3 additions & 2 deletions Source/Core/Common/Event.h
Expand Up @@ -16,9 +16,10 @@
#include <concrt.h>
#endif

#include <condition_variable>
#include <mutex>

#include "Common/Flag.h"
#include "Common/StdConditionVariable.h"
#include "Common/StdMutex.h"

namespace Common {

Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Common/Logging/LogManager.h
Expand Up @@ -6,11 +6,11 @@

#include <cstdarg>
#include <fstream>
#include <mutex>
#include <set>
#include <string>

#include "Common/Common.h"
#include "Common/StdMutex.h"

#define MAX_MESSAGES 8000
#define MAX_MSGLEN 1024
Expand Down
140 changes: 0 additions & 140 deletions Source/Core/Common/StdConditionVariable.h

This file was deleted.

0 comments on commit ac0ac18

Please sign in to comment.