Re: how to implement Thread Local Storage (TLS) in kernel
- From: "Doron Holan [MS]" <doronh@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 14 Jun 2005 00:36:05 -0700
you can't. there is no concept of TLS in kernel. you can create your own
table on the side using the current thread ID + current IRQL as the lookup,
but b/c you can run in any arbitrary thread context for DPCs and potentialy
incoming I/O, TLS doesn't make much sense. what problem are u trying to
solve?
d
--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.
"Ben Kial" <benkial@xxxxxxxxxxx> wrote in message
news:1118726709.017387.283480@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>I need to implement a Thread Local Storage (TLS) scheme in Windows
> kernel
> (XP SP2). I plan to create a global hash table and use
> PsGetCurrentThreadId() as the index.
>
> My question is how can I trap the thread exit event inside kernel so
> that I can "de-register" the TLS entry when a thread exits.
>
> Thanks in advance,
>
>
> Ben
>
.
- Follow-Ups:
- Re: how to implement Thread Local Storage (TLS) in kernel
- From: Ben Kial
- Re: how to implement Thread Local Storage (TLS) in kernel
- References:
- how to implement Thread Local Storage (TLS) in kernel
- From: Ben Kial
- how to implement Thread Local Storage (TLS) in kernel
- Prev by Date: Re: What is the fastest IPC faculty in Windows 2000 or later?
- Next by Date: Re: CreateProcess not working as doc specifies.
- Previous by thread: how to implement Thread Local Storage (TLS) in kernel
- Next by thread: Re: how to implement Thread Local Storage (TLS) in kernel
- Index(es):
Relevant Pages
|