File: tsld025.htm

package info (click to toggle)
aolserver4 4.0.10-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 10,980 kB
  • ctags: 14,068
  • sloc: ansic: 39,138; tcl: 3,233; sh: 2,703; makefile: 255; php: 13
file content (50 lines) | stat: -rw-r--r-- 1,137 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50

<HTML>

<HEAD>

<meta name="GENERATOR" content="Microsoft Internet Assistant for PowerPoint 97">
 <TITLE>Multithreaded Tcl - Thread Local Storage</TITLE> 
</HEAD>

<BODY     >

 <H1>Multithreaded Tcl - Thread Local Storage</H1> 
 <P><UL>
<LI><H2>Next, various global data had to be moved to thread local storage, e.g., from tclIO.c:</H2>
</UL></P>
<P><UL>
void
</UL><UL>
Tcl_SetStdChannel(channel, type)
</UL><UL>
{
</UL><UL>
    ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&dataKey);
</UL><UL>
    switch (type) {
</UL><UL>
        case TCL_STDIN:
</UL><UL>
            tsdPtr-&#062stdinInitialized = 1;
</UL><UL>
            tsdPtr-&#062stdinChannel = channel;
</UL><UL>
            break;
</UL><UL>
        ...</UL></P>
<P></P> 
<P>
<TABLE>
  <TD HEIGHT=100 WIDTH=100> <A HREF="tsld024.htm">Previous slide</A> </TD>
  <TD HEIGHT=100 WIDTH=100> <A HREF="tsld026.htm">Next slide</A> </TD>
  <TD HEIGHT=100 WIDTH=150> <A HREF="tsld001.htm">Back to first slide</A> </TD>
  <TD HEIGHT=100 WIDTH=150> <A HREF="sld025.htm">View graphic version</A> </TD>
</TABLE>
<BR>
</P>



</Body>
</HTML>