Package system.threading
Class Interlocked
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.threading.Interlocked
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class Interlocked extends NetObject
The base .NET class managing System.Threading.Interlocked, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Interlocked
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: mscorlibstatic java.lang.String
className
Qualified class name: System.Threading.Interlockedstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description Interlocked()
Interlocked(java.lang.Object instance)
Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
Add(JCORefOut<java.util.concurrent.atomic.AtomicInteger> location1, int value)
static long
Add(JCORefOut<java.util.concurrent.atomic.AtomicLong> location1, long value)
static Interlocked
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoInterlocked
, a cast assert is made to check if types are compatible.static int
CompareExchange(JCORefOut<java.util.concurrent.atomic.AtomicInteger> location1, int value, int comparand)
static long
CompareExchange(JCORefOut<java.util.concurrent.atomic.AtomicLong> location1, long value, long comparand)
static double
CompareExchange(JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Double>> location1, double value, double comparand)
static NetObject
CompareExchange(JCORefOut<NetObject> location1, NetObject value, NetObject comparand)
static Single
CompareExchange(JCORefOut<Single> location1, Single value, Single comparand)
static int
Exchange(JCORefOut<java.util.concurrent.atomic.AtomicInteger> location1, int value)
static long
Exchange(JCORefOut<java.util.concurrent.atomic.AtomicLong> location1, long value)
static double
Exchange(JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Double>> location1, double value)
static NetObject
Exchange(JCORefOut<NetObject> location1, NetObject value)
static Single
Exchange(JCORefOut<Single> location1, Single value)
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typestatic void
MemoryBarrier()
static long
Read(JCORefOut<java.util.concurrent.atomic.AtomicLong> location)
void
setJCOInstance(JCObject instance)
static void
SpeculationBarrier()
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: mscorlib- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Threading.Interlocked- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static Interlocked cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoInterlocked
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
Interlocked
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
CompareExchange
public static double CompareExchange(JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Double>> location1, double value, double comparand) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Exchange
public static double Exchange(JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Double>> location1, double value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Add
public static int Add(JCORefOut<java.util.concurrent.atomic.AtomicInteger> location1, int value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CompareExchange
public static int CompareExchange(JCORefOut<java.util.concurrent.atomic.AtomicInteger> location1, int value, int comparand) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Exchange
public static int Exchange(JCORefOut<java.util.concurrent.atomic.AtomicInteger> location1, int value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Add
public static long Add(JCORefOut<java.util.concurrent.atomic.AtomicLong> location1, long value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CompareExchange
public static long CompareExchange(JCORefOut<java.util.concurrent.atomic.AtomicLong> location1, long value, long comparand) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Exchange
public static long Exchange(JCORefOut<java.util.concurrent.atomic.AtomicLong> location1, long value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Read
public static long Read(JCORefOut<java.util.concurrent.atomic.AtomicLong> location) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CompareExchange
public static Single CompareExchange(JCORefOut<Single> location1, Single value, Single comparand) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Exchange
public static Single Exchange(JCORefOut<Single> location1, Single value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CompareExchange
public static NetObject CompareExchange(JCORefOut<NetObject> location1, NetObject value, NetObject comparand) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Exchange
public static NetObject Exchange(JCORefOut<NetObject> location1, NetObject value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
MemoryBarrier
public static void MemoryBarrier() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
SpeculationBarrier
public static void SpeculationBarrier() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-