1999-04-07 00:00:00 +00:00
|
|
|
/***
|
|
|
|
*
|
2001-11-08 00:00:00 +00:00
|
|
|
* Copyright (c) 1996-2001, Valve LLC. All rights reserved.
|
1999-04-07 00:00:00 +00:00
|
|
|
*
|
|
|
|
* This product contains software technology licensed from Id
|
|
|
|
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
|
|
|
|
* All Rights Reserved.
|
|
|
|
*
|
|
|
|
****/
|
|
|
|
|
|
|
|
extern int numthreads;
|
|
|
|
|
|
|
|
void ThreadSetDefault (void);
|
|
|
|
int GetThreadWork (void);
|
|
|
|
void RunThreadsOnIndividual (int workcnt, qboolean showpacifier, void(*func)(int));
|
|
|
|
void RunThreadsOn (int workcnt, qboolean showpacifier, void(*func)(int));
|
|
|
|
void ThreadLock (void);
|
|
|
|
void ThreadUnlock (void);
|
|
|
|
|
|
|
|
#ifndef NO_THREAD_NAMES
|
|
|
|
#define RunThreadsOn(n,p,f) { if (p) printf("%-20s ", #f ":"); RunThreadsOn(n,p,f); }
|
|
|
|
#define RunThreadsOnIndividual(n,p,f) { if (p) printf("%-20s ", #f ":"); RunThreadsOnIndividual(n,p,f); }
|
|
|
|
#endif
|
|
|
|
|