mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
Fix compiling.
This commit is contained in:
@ -350,7 +350,7 @@ static void RequestNextManifestFile () {
|
|||||||
if (!manifestQueue.size())
|
if (!manifestQueue.size())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ManifestFile* nextFile = manifestQueue.front();
|
ManifestFile* nextfile = manifestQueue.front();
|
||||||
manifestQueue.pop();
|
manifestQueue.pop();
|
||||||
|
|
||||||
char path[MAX_PATH];
|
char path[MAX_PATH];
|
||||||
@ -920,7 +920,7 @@ void UruPrepProc (void * param) {
|
|||||||
|
|
||||||
while (manifestQueue.size())
|
while (manifestQueue.size())
|
||||||
{
|
{
|
||||||
ManifestFile* mf = manifestQueue.front()
|
ManifestFile* mf = manifestQueue.front();
|
||||||
manifestQueue.pop();
|
manifestQueue.pop();
|
||||||
delete mf;
|
delete mf;
|
||||||
}
|
}
|
||||||
|
@ -46,6 +46,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
|||||||
***/
|
***/
|
||||||
|
|
||||||
#include "Pch.h"
|
#include "Pch.h"
|
||||||
|
#include "hsThread.h"
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
|
|
||||||
|
|
||||||
|
@ -258,7 +258,7 @@ void DebugMsg(const char fmt[], ...);
|
|||||||
***/
|
***/
|
||||||
|
|
||||||
// *value += increment; return original value of *value; thread safe
|
// *value += increment; return original value of *value; thread safe
|
||||||
long AtomicAdd(long* value, long increment) {
|
inline long AtomicAdd(long* value, long increment) {
|
||||||
#ifdef HS_BUILD_FOR_WIN32
|
#ifdef HS_BUILD_FOR_WIN32
|
||||||
return InterlockedExchangeAdd(value, increment);
|
return InterlockedExchangeAdd(value, increment);
|
||||||
#elif HS_BUILD_FOR_UNIX
|
#elif HS_BUILD_FOR_UNIX
|
||||||
@ -269,7 +269,7 @@ long AtomicAdd(long* value, long increment) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// *value = value; return original value of *value; thread safe
|
// *value = value; return original value of *value; thread safe
|
||||||
long AtomicSet(long* value, long set) {
|
inline long AtomicSet(long* value, long set) {
|
||||||
#ifdef HS_BUILD_FOR_WIN32
|
#ifdef HS_BUILD_FOR_WIN32
|
||||||
return InterlockedExchange(value, set);
|
return InterlockedExchange(value, set);
|
||||||
#elif HS_BUILD_FOR_UNIX
|
#elif HS_BUILD_FOR_UNIX
|
||||||
|
@ -222,8 +222,6 @@ static void INtOpDispatch (
|
|||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
static unsigned THREADCALL NtWorkerThreadProc (AsyncThread * thread) {
|
static unsigned THREADCALL NtWorkerThreadProc (AsyncThread * thread) {
|
||||||
ThreadDenyBlock();
|
|
||||||
|
|
||||||
unsigned sleepMs = INFINITE;
|
unsigned sleepMs = INFINITE;
|
||||||
while (s_running) {
|
while (s_running) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user