equal
deleted
inserted
replaced
24 |
24 |
25 |
25 |
26 /** |
26 /** |
27 Sets the value of the Thread Local Storage (TLS) variable. |
27 Sets the value of the Thread Local Storage (TLS) variable. |
28 |
28 |
|
29 Note that the TLS value for a given DLL may be preserved even if the DLL has |
|
30 been unloaded from the current process and loaded again since it was set. The |
|
31 value is not guaranteed to be preserved. The DLL must take steps to ensure that |
|
32 Dll::FreeTls is called for all relevant threads if this must be avoided. |
|
33 |
29 @param aPtr The value to be assigned to the Thread Local Storage variable. |
34 @param aPtr The value to be assigned to the Thread Local Storage variable. |
30 In practice, this is almost always a pointer to memory |
35 In practice, this is almost always a pointer to memory |
31 that has previously been allocated, but does not necessarily |
36 that has previously been allocated, but does not necessarily |
32 need to be so. |
37 need to be so. |
33 |
38 |
46 |
51 |
47 |
52 |
48 |
53 |
49 /** |
54 /** |
50 Gets the value of the Thread Local Storage (TLS) variable. |
55 Gets the value of the Thread Local Storage (TLS) variable. |
|
56 |
|
57 Note that the TLS value for a given DLL may be preserved even if the DLL has |
|
58 been unloaded from the current process and loaded again since it was set. The |
|
59 value is not guaranteed to be preserved. The DLL must take steps to ensure that |
|
60 Dll::FreeTls is called for all relevant threads if this must be avoided. |
51 |
61 |
52 @return The value of the Thread Local Storage variable as set by |
62 @return The value of the Thread Local Storage variable as set by |
53 a previous call to Dll::SetTls(). If no value has previously |
63 a previous call to Dll::SetTls(). If no value has previously |
54 been set, then the returned value is NULL. |
64 been set, then the returned value is NULL. |
55 */ |
65 */ |