@@ -11,7 +11,7 @@ public abstract class FastThreadLocal
11
11
static readonly int VariablesToRemoveIndex = InternalThreadLocalMap . NextVariableIndex ( ) ;
12
12
13
13
/// <summary>
14
- /// Removes all {@link FastThreadLocal} variables bound to the current thread. This operation is useful when you
14
+ /// Removes all <see cref=" FastThreadLocal"/> variables bound to the current thread. This operation is useful when you
15
15
/// are in a container environment, and you don't want to leave the thread local variables in the threads you do not
16
16
/// manage.
17
17
/// </summary>
@@ -41,10 +41,12 @@ public static void RemoveAll()
41
41
}
42
42
}
43
43
44
- /// Destroys the data structure that keeps all {@link FastThreadLocal} variables accessed from
45
- /// non-{@link FastThreadLocalThread}s. This operation is useful when you are in a container environment, and you
46
- /// do not want to leave the thread local variables in the threads you do not manage. Call this method when your
47
- /// application is being unloaded from the container.
44
+ /// <summary>
45
+ /// Destroys the data structure that keeps all <see cref="FastThreadLocal"/> variables accessed from
46
+ /// non-<see cref="FastThreadLocal"/>s. This operation is useful when you are in a container environment, and
47
+ /// you do not want to leave the thread local variables in the threads you do not manage. Call this method when
48
+ /// your application is being unloaded from the container.
49
+ /// </summary>
48
50
public static void Destroy ( ) => InternalThreadLocalMap . Destroy ( ) ;
49
51
50
52
protected static void AddToVariablesToRemove ( InternalThreadLocalMap threadLocalMap , FastThreadLocal variable )
@@ -135,7 +137,7 @@ T Initialize(InternalThreadLocalMap threadLocalMap)
135
137
}
136
138
137
139
/// <summary>
138
- /// Set the value for the specified thread local map. The specified thread local map must be for the current thread.
140
+ /// Set the value for the specified thread local map. The specified thread local map must be for the current thread.
139
141
/// </summary>
140
142
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
141
143
public void Set ( InternalThreadLocalMap threadLocalMap , T value )
@@ -147,27 +149,32 @@ public void Set(InternalThreadLocalMap threadLocalMap, T value)
147
149
}
148
150
149
151
/// <summary>
150
- /// Returns {@code true} if and only if this thread-local variable is set.
152
+ /// Returns <c> true</c> if and only if this thread-local variable is set.
151
153
/// </summary>
152
154
public bool IsSet ( ) => this . IsSet ( InternalThreadLocalMap . GetIfSet ( ) ) ;
153
155
154
156
/// <summary>
155
- /// Returns {@code true} if and only if this thread-local variable is set.
156
- /// The specified thread local map must be for the current thread.
157
+ /// Returns <c> true</c> if and only if this thread-local variable is set.
158
+ /// The specified thread local map must be for the current thread.
157
159
/// </summary>
158
160
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
159
161
public bool IsSet ( InternalThreadLocalMap threadLocalMap ) => threadLocalMap != null && threadLocalMap . IsIndexedVariableSet ( this . index ) ;
160
162
161
163
/// <summary>
162
- /// Returns the initial value for this thread-local variable.
164
+ /// Returns the initial value for this thread-local variable.
163
165
/// </summary>
164
166
protected virtual T GetInitialValue ( ) => null ;
165
167
166
168
public void Remove ( ) => this . Remove ( InternalThreadLocalMap . GetIfSet ( ) ) ;
167
169
170
+ /// <summary>
168
171
/// Sets the value to uninitialized for the specified thread local map;
169
- /// a proceeding call to get() will trigger a call to GetInitialValue() .
172
+ /// a proceeding call to <see cref="Get"/> will trigger a call to <see cref=" GetInitialValue"/> .
170
173
/// The specified thread local map must be for the current thread.
174
+ /// </summary>
175
+ /// <param name="threadLocalMap">
176
+ /// The <see cref="InternalThreadLocalMap"/> from which this <see cref="FastThreadLocal"/> should be removed.
177
+ /// </param>
171
178
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
172
179
public sealed override void Remove ( InternalThreadLocalMap threadLocalMap )
173
180
{
@@ -186,7 +193,7 @@ public sealed override void Remove(InternalThreadLocalMap threadLocalMap)
186
193
}
187
194
188
195
/// <summary>
189
- /// Invoked when this thread local variable is removed by {@link #remove()} .
196
+ /// Invoked when this thread local variable is removed by <see cref="Remove()"/> .
190
197
/// </summary>
191
198
protected virtual void OnRemoval ( T value )
192
199
{
0 commit comments