3 * Copyright © 2001 Novell, Inc. All Rights Reserved.
5 * You may distribute under the terms of either the GNU General Public
6 * License or the Artistic License, as specified in the README file.
11 * FILENAME : NWTInfo.h
12 * DESCRIPTION : Thread-local storage for Perl.
14 * Date : January 2001.
24 #include "win32ish.h" // For "BOOL", "TRUE" and "FALSE"
26 typedef struct tagThreadInfo
29 struct tagThreadInfo *next;
30 BOOL m_dontTouchHashLists;
35 void fnInitializeThreadInfo(void);
36 BOOL fnTerminateThreadInfo(void);
37 BOOL fnRegisterWithThreadTable(void);
38 BOOL fnUnregisterWithThreadTable(void);
40 ThreadInfo* fnAddThreadInfo(int tid);
41 BOOL fnRemoveThreadInfo(int tid);
42 ThreadInfo* fnGetThreadInfo(int tid);
44 //For storing and retrieving Watcom Hash list address
45 BOOL fnInsertHashListAddrs(void *addrs, BOOL dontTouchHashList);
46 BOOL fnGetHashListAddrs(void **addrs, BOOL *dontTouchHashList);
48 //New TLS to set and get the thread contex - may be redundant,
49 //or see if the above portion can be removed once this works properly
50 typedef struct tagThreadCtx
54 struct tagThreadCtx *next;
58 long fnInitializeThreadCtx(void);
59 ThreadContext* fnAddThreadCtx(long lTLSIndex, void *t);
60 BOOL fnRemoveThreadCtx(long lTLSIndex);
61 void* fnGetThreadCtx(long lTLSIndex);
63 #endif // __NWTInfo_H__