IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
IKVM.Runtime.InterlockedMethods Class Reference

Public Member Functions

 InterlockedMethods (RuntimeContext context)
 Initializes a new instance.
 

Detailed Description

Definition at line 134 of file atomic.cs.

Constructor & Destructor Documentation

◆ InterlockedMethods()

IKVM.Runtime.InterlockedMethods.InterlockedMethods ( RuntimeContext context)

Initializes a new instance.

Parameters
context

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();
154 AddInt32 = type.GetMethod("Add", [context.Types.Int32.MakeByRefType(), context.Types.Int32]);
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 });
157 foreach (MethodInfo m in type.GetMethods())
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: