Skip to content

Commit d8580d5

Browse files
committed
Fix CreateThreadPool
1 parent 54d76a1 commit d8580d5

File tree

9 files changed

+12
-9
lines changed

9 files changed

+12
-9
lines changed

engine/host_saverestore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3286,7 +3286,7 @@ void CSaveRestore::Init( void )
32863286
threadPoolStartParams.bUseAffinityTable = true;
32873287
}
32883288

3289-
g_pSaveThread = CreateThreadPool1();
3289+
g_pSaveThread = CreateThreadPool();
32903290
g_pSaveThread->Start( threadPoolStartParams, "SaveJob" );
32913291
}
32923292

engine/wscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ def build(bld):
364364
elif bld.env.DEST_OS == 'win32':
365365
libs += ['USER32', 'WINMM', 'WININET', 'DSOUND', 'DXGUID', 'GDI32', 'bzip2']
366366
elif bld.env.DEST_OS == 'darwin':
367-
libs += ['COREAUDIO', 'AUDIOTOOLBOX', 'SYSTEMCONFIGURATION']
367+
libs += ['APPKIT', 'COREAUDIO', 'AUDIOTOOLBOX', 'SYSTEMCONFIGURATION']
368368

369369
install_path = bld.env.LIBDIR
370370

filesystem/filesystem_async.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ void CBaseFileSystem::InitAsync()
663663
if ( VCRGetMode() == VCR_Disabled )
664664
{
665665
// create the i/o thread pool
666-
m_pThreadPool = CreateThreadPool1();
666+
m_pThreadPool = CreateThreadPool();
667667

668668
ThreadPoolStartParams_t params;
669669
params.iThreadPriority = 0;

game/client/particlemgr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ bool CParticleMgr::Init(unsigned long count, IMaterialSystem *pMaterials)
10871087
if ( IsX360() )
10881088
{
10891089
//m_pThreadPool[0] = CreateThreadPool();
1090-
m_pThreadPool[1] = CreateThreadPool1();
1090+
m_pThreadPool[1] = CreateThreadPool();
10911091

10921092
ThreadPoolStartParams_t startParams;
10931093
startParams.nThreads = 3;

materialsystem/cmaterialsystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3567,7 +3567,7 @@ IThreadPool *CMaterialSystem::CreateMatQueueThreadPool()
35673567
// that only the threadpool threads should execute these jobs.
35683568
startParams.bExecOnThreadPoolThreadsOnly = true;
35693569

3570-
m_pMatQueueThreadPool = CreateThreadPool1();
3570+
m_pMatQueueThreadPool = CreateThreadPool();
35713571
m_pMatQueueThreadPool->Start( startParams, "MatQueue" );
35723572
}
35733573

public/vstdlib/jobthread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ abstract_class IThreadPool : public IRefCounted
419419

420420
//-----------------------------------------------------------------------------
421421

422-
JOB_INTERFACE IThreadPool *CreateThreadPool1();
422+
JOB_INTERFACE IThreadPool *CreateThreadPool();
423423
JOB_INTERFACE void DestroyThreadPool( IThreadPool *pPool );
424424

425425
//-------------------------------------

replay/shared_replaycontext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ bool CSharedReplayContext::InitThreadPool()
7575
{
7676
// Create thread pool
7777
Log( "Replay: Creating thread pool..." );
78-
IThreadPool *pThreadPool = CreateThreadPool1();
78+
IThreadPool *pThreadPool = CreateThreadPool();
7979
if ( !pThreadPool )
8080
{
8181
Log( "failed!\n" );

vstdlib/jobthread.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ class CThreadPool : public CRefCounted1<IThreadPool, CRefCountServiceMT>
285285

286286
//-----------------------------------------------------------------------------
287287

288-
JOB_INTERFACE IThreadPool *CreateThreadPool1()
288+
JOB_INTERFACE IThreadPool *CreateThreadPool()
289289
{
290290
return new CThreadPool;
291291
}

vstdlib/wscript

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,13 @@ def build(bld):
4848
defines = []
4949

5050
libs = ['tier0','tier1']
51+
linkflags = []
5152

5253
if bld.env.DEST_OS == 'android':
5354
libs += ['ANDROID_SUPPORT']
5455
elif bld.env.DEST_OS == 'darwin':
55-
libs += ['ICONV', 'COREFOUNDATION', 'CORESERVICES']
56+
libs += ['ICONV', 'COREFOUNDATION']
57+
linkflags += ['-framework', 'CoreServices']
5658

5759
install_path = bld.env.LIBDIR
5860

@@ -64,6 +66,7 @@ def build(bld):
6466
includes = includes,
6567
defines = defines,
6668
use = libs,
69+
linkflags = linkflags,
6770
install_path = install_path,
6871
subsystem = bld.env.MSVC_SUBSYSTEM,
6972
idx = bld.get_taskgen_count()

0 commit comments

Comments
 (0)