Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
engine_threading.h
1/* Renegade Scripts.dll
2 Copyright 2013 Tiberian Technologies
3
4 This file is part of the Renegade scripts.dll
5 The Renegade scripts.dll is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License as published by the Free
7 Software Foundation; either version 2, or (at your option) any later
8 version. See the file COPYING for more details.
9 In addition, an exemption is given to allow Run Time Dynamic Linking of this code with any closed source module that does not contain code covered by this licence.
10 Only the source code to the module(s) containing the licenced code has to be released.
11*/
12#ifndef SCRIPTS_INCLUDE__ENGINE_THREADING_H
13#define SCRIPTS_INCLUDE__ENGINE_THREADING_H
14
15
16
17#include "CriticalSectionClass.h"
18
19
20
21struct THREADNAME_INFO
22{
23 DWORD dwType; // must be 0x1000
24 LPCSTR szName; // pointer to name (in user addr space)
25 DWORD dwThreadID; // thread ID (-1=caller thread)
26 DWORD dwFlags; // reserved for future use, must be zero
27};
28
29void SetThreadName(DWORD dwThreadID, LPCSTR szThreadName);
30
31
32
33#endif