[DGD] How does TLS work?

Mikael Lind mikkelin at gmail.com
Fri Mar 23 10:56:20 CET 2007


Hello Petter,

2007/3/23, Petter Nyström <jimorie at gmail.com>:
> [...]
> but then do nothing with it. Aha. So that is how it gets it into the
> trace. But most threads start in the receive_message() function of the
> user object, and there I see no sign of taking TLS into account. So
> now I am left with the feeling that I missing something.

Actually, the message is first received by a connection object, that
does allocate TLS storage before forwarding the message to the user
object. See: /kernel/lib/connection.c, /kernel/obj/binary.c, and
/kernel/obj/telnet.c

Apart from that, I think you are spot on so far.

Regards,
Mikael




More information about the DGD mailing list