Definition at line 134 of file atomic.cs.
◆ InterlockedMethods()
| IKVM.Runtime.InterlockedMethods.InterlockedMethods |
( |
RuntimeContext | context | ) |
|
Initializes a new instance.
- Parameters
-
Definition at line 149 of file atomic.cs.
150 {
151 this.context = context;
152
153 var type = context.
Resolver.ResolveCoreType(typeof(
System.Threading.Interlocked).FullName).AsReflection();
155 CompareExchangeInt32 = type.GetMethod(
"CompareExchange",
new Type[] { context.
Types.
Int32.MakeByRefType(), context.
Types.
Int32, context.Types.Int32 });
156 CompareExchangeInt64 = type.GetMethod(
"CompareExchange",
new Type[] { context.
Types.
Int64.MakeByRefType(), context.
Types.
Int64, context.Types.Int64 });
158 {
159 if (m.IsGenericMethodDefinition)
160 {
161 switch (m.Name)
162 {
163 case "CompareExchange":
164 CompareExchangeOfT = m;
165 break;
166 case "Exchange":
167 ExchangeOfT = m;
168 break;
169 }
170 }
171 }
172
173 }
IKVM.Reflection.Type Type
IKVM.Reflection.MethodInfo MethodInfo
Types Types
Gets the Types associated with this instance of the runtime.
ISymbolResolver Resolver
Gets the ISymbolResolver associated with this instance of the runtime.
The documentation for this class was generated from the following file: