4adcc83f236d0dc135a5ee937318c0163e134413
3 #ifndef __CRT_INTERNAL_TLS_H
4 #define __CRT_INTERNAL_TLS_H
7 #error DO NOT INCLUDE THIS HEADER DIRECTLY
18 typedef struct _ThreadData
20 int terrno
; /* *nix error code */
21 unsigned long tdoserrno
; /* Win32 error code (for I/O only) */
22 unsigned __int64 tnext
; /* used by rand/srand */
24 char *lasttoken
; /* used by strtok */
25 wchar_t *wlasttoken
; /* used by wcstok */
28 int fpecode
; /* fp exception code */
31 int (*qcmp
)(const void *, const void *); /* the comparison routine */
32 int qsz
; /* size of each record */
33 int thresh
; /* THRESHold in chars */
34 int mthresh
; /* MTHRESHold in chars */
36 EXCEPTION_RECORD
*exc_record
; /* Head of exception record list */
38 } THREADDATA
, *PTHREADDATA
;
41 int CreateThreadData(void);
42 void DestroyThreadData(void);
44 void FreeThreadData(PTHREADDATA ptd
);
45 PTHREADDATA
GetThreadData(void);
47 #endif /* __MSVCRT_INTERNAL_TLS_H */