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;
34 void fnInitializeThreadInfo(void);
35 BOOL fnTerminateThreadInfo(void);
36 BOOL fnRegisterWithThreadTable(void);
37 BOOL fnUnregisterWithThreadTable(void);
39 ThreadInfo* fnAddThreadInfo(int tid);
40 BOOL fnRemoveThreadInfo(int tid);
41 ThreadInfo* fnGetThreadInfo(int tid);
43 //For storing and retrieving Watcom Hash list address
45 extern "C" BOOL fnInsertHashListAddrs(void *addrs, BOOL dontTouchHashList);
47 BOOL fnInsertHashListAddrs(void *addrs, BOOL dontTouchHashList);
49 BOOL fnGetHashListAddrs(void **addrs, BOOL *dontTouchHashList);
51 //New TLS to set and get the thread contex - may be redundant,
52 //or see if the above portion can be removed once this works properly
53 typedef struct tagThreadCtx
57 struct tagThreadCtx *next;
61 long fnInitializeThreadCtx(void);
62 ThreadContext* fnAddThreadCtx(long lTLSIndex, void *t);
63 BOOL fnRemoveThreadCtx(long lTLSIndex);
64 void* fnGetThreadCtx(long lTLSIndex);
66 #endif // __NWTInfo_H__