mirror of
https://github.com/ENSL/NS.git
synced 2024-12-02 17:21:52 +00:00
04c334c94b
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@15 67975925-1194-0748-b3d5-c16f83f1a3a1
24 lines
775 B
C
24 lines
775 B
C
/***
|
|
*
|
|
* Copyright (c) 1998, Valve LLC. All rights reserved.
|
|
*
|
|
* 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
|
|
|