Conflicts fixed

This commit is contained in:
Nekotekina
2014-03-06 15:50:45 +04:00
parent e86a849600
commit 05c6a96d27
22 changed files with 501 additions and 132 deletions
+2 -1
View File
@@ -50,10 +50,11 @@ class be_t
public:
typedef T type;
#ifdef _WIN32
be_t(){}
#else
be_t() noexcept = default
be_t() noexcept = default;
#endif
be_t(const T& value)
+2 -1
View File
@@ -1,6 +1,7 @@
#include <stdafx.h>
#include <Utilities/SMutex.h>
__forceinline void SM_Sleep()
{
Sleep(1);
@@ -8,7 +9,7 @@ __forceinline void SM_Sleep()
__forceinline size_t SM_GetCurrentThreadId()
{
return std::this_thread::get_id().hash();
return std::hash<std::thread::id>()(std::this_thread::get_id());
}
__forceinline u32 SM_GetCurrentCPUThreadId()
+2 -2
View File
@@ -15,7 +15,7 @@ public:
{
}
bool Push(T& data)
bool Push(const T& data)
{
while (true)
{
@@ -100,4 +100,4 @@ public:
SMutexLocker lock(m_mutex);
return m_data[(m_pos + pos) % SQSize];
}
};
};