Package system.threading
Class Thread
- java.lang.Object
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class Thread extends CriticalFinalizerObject
The base .NET class managing System.Threading.Thread, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Thread
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.Threadstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description Thread()
Thread(java.lang.Object instance)
Internal constructor.Thread(ParameterizedThreadStart start)
Thread(ParameterizedThreadStart start, int maxStackSize)
Thread(ThreadStart start)
Thread(ThreadStart start, int maxStackSize)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
Abort()
void
Abort(NetObject stateInfo)
static LocalDataStoreSlot
AllocateDataSlot()
static LocalDataStoreSlot
AllocateNamedDataSlot(java.lang.String name)
static void
BeginCriticalRegion()
static void
BeginThreadAffinity()
static Thread
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoThread
, a cast assert is made to check if types are compatible.void
DisableComObjectEagerCleanup()
static void
EndCriticalRegion()
static void
EndThreadAffinity()
static void
FreeNamedDataSlot(java.lang.String name)
ApartmentState
getApartmentState()
ApartmentState
GetApartmentState()
CompressedStack
GetCompressedStack()
static Context
getCurrentContext()
CultureInfo
getCurrentCulture()
static IPrincipal
getCurrentPrincipal()
static Thread
getCurrentThread()
CultureInfo
getCurrentUICulture()
static NetObject
GetData(LocalDataStoreSlot slot)
static AppDomain
GetDomain()
static int
GetDomainID()
ExecutionContext
getExecutionContext()
boolean
getIsAlive()
boolean
getIsBackground()
boolean
getIsThreadPoolThread()
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 Typeint
getManagedThreadId()
java.lang.String
getName()
static LocalDataStoreSlot
GetNamedDataSlot(java.lang.String name)
ThreadPriority
getPriority()
ThreadState
getThreadState()
void
Interrupt()
void
Join()
boolean
Join(int millisecondsTimeout)
boolean
Join(TimeSpan timeout)
static void
MemoryBarrier()
static void
ResetAbort()
void
Resume()
void
setApartmentState(ApartmentState ApartmentState)
void
SetApartmentState(ApartmentState state)
void
SetCompressedStack(CompressedStack stack)
void
setCurrentCulture(CultureInfo CurrentCulture)
static void
setCurrentPrincipal(IPrincipal CurrentPrincipal)
void
setCurrentUICulture(CultureInfo CurrentUICulture)
static void
SetData(LocalDataStoreSlot slot, NetObject data)
void
setIsBackground(boolean IsBackground)
void
setJCOInstance(JCObject instance)
void
setName(java.lang.String Name)
void
setPriority(ThreadPriority Priority)
static void
Sleep(int millisecondsTimeout)
static void
Sleep(TimeSpan timeout)
static void
SpinWait(int iterations)
void
Start()
void
Start(NetObject parameter)
void
Suspend()
boolean
TrySetApartmentState(ApartmentState state)
static void
VolatileWrite(JCORefOut<java.util.concurrent.atomic.AtomicInteger> address, int value)
static void
VolatileWrite(JCORefOut<java.util.concurrent.atomic.AtomicLong> address, long value)
static void
VolatileWrite(JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Byte>> address, byte value)
static void
VolatileWrite(JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Double>> address, double value)
static void
VolatileWrite(JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Short>> address, short value)
static void
VolatileWrite(JCORefOut<NetObject> address, NetObject value)
static void
VolatileWrite(JCORefOut<SByte> address, SByte value)
static void
VolatileWrite(JCORefOut<Single> address, Single value)
static void
VolatileWrite(JCORefOut<UInt16> address, UInt16 value)
static void
VolatileWrite(JCORefOut<UInt32> address, UInt32 value)
static void
VolatileWrite(JCORefOut<UInt64> address, UInt64 value)
static boolean
Yield()
-
-
-
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.Thread- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Thread
public Thread(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
Thread
public Thread() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Thread
public Thread(ParameterizedThreadStart start) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, SecurityException
- Throws:
java.lang.Throwable
ArgumentNullException
InvalidOperationException
SecurityException
-
Thread
public Thread(ParameterizedThreadStart start, int maxStackSize) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, SecurityException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
InvalidOperationException
SecurityException
-
Thread
public Thread(ThreadStart start) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, SecurityException
- Throws:
java.lang.Throwable
ArgumentNullException
InvalidOperationException
SecurityException
-
Thread
public Thread(ThreadStart start, int maxStackSize) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, SecurityException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
InvalidOperationException
SecurityException
-
-
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 classCriticalFinalizerObject
- 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 classCriticalFinalizerObject
- 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 classCriticalFinalizerObject
- 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 classCriticalFinalizerObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classCriticalFinalizerObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classCriticalFinalizerObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static Thread cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoThread
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
Thread
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
Join
public boolean Join(int millisecondsTimeout) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Join
public boolean Join(TimeSpan timeout) throws java.lang.Throwable, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
-
TrySetApartmentState
public boolean TrySetApartmentState(ApartmentState state) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Yield
public static boolean Yield() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetDomainID
public static int GetDomainID() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetDomain
public static AppDomain GetDomain() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
AllocateDataSlot
public static LocalDataStoreSlot AllocateDataSlot() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
ArgumentNullException
-
AllocateNamedDataSlot
public static LocalDataStoreSlot AllocateNamedDataSlot(java.lang.String name) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
ArgumentNullException
-
GetNamedDataSlot
public static LocalDataStoreSlot GetNamedDataSlot(java.lang.String name) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
ArgumentNullException
-
GetData
public static NetObject GetData(LocalDataStoreSlot slot) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
InvalidOperationException
-
GetApartmentState
public ApartmentState GetApartmentState() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetCompressedStack
public CompressedStack GetCompressedStack() throws java.lang.Throwable, InvalidOperationException
- Throws:
java.lang.Throwable
InvalidOperationException
-
Abort
public void Abort() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Abort
public void Abort(NetObject stateInfo) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
BeginCriticalRegion
public static void BeginCriticalRegion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
BeginThreadAffinity
public static void BeginThreadAffinity() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
DisableComObjectEagerCleanup
public void DisableComObjectEagerCleanup() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
EndCriticalRegion
public static void EndCriticalRegion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
EndThreadAffinity
public static void EndThreadAffinity() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
FreeNamedDataSlot
public static void FreeNamedDataSlot(java.lang.String name) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
ArgumentNullException
-
Interrupt
public void Interrupt() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Join
public void Join() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
MemoryBarrier
public static void MemoryBarrier() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ResetAbort
public static void ResetAbort() throws java.lang.Throwable, ThreadStateException
- Throws:
java.lang.Throwable
ThreadStateException
-
Resume
public void Resume() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
SetApartmentState
public void SetApartmentState(ApartmentState state) throws java.lang.Throwable, InvalidOperationException
- Throws:
java.lang.Throwable
InvalidOperationException
-
SetCompressedStack
public void SetCompressedStack(CompressedStack stack) throws java.lang.Throwable, InvalidOperationException
- Throws:
java.lang.Throwable
InvalidOperationException
-
SetData
public static void SetData(LocalDataStoreSlot slot, NetObject data) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
InvalidOperationException
ArgumentNullException
-
Sleep
public static void Sleep(int millisecondsTimeout) throws java.lang.Throwable, ObjectDisposedException, AbandonedMutexException
- Throws:
java.lang.Throwable
ObjectDisposedException
AbandonedMutexException
-
Sleep
public static void Sleep(TimeSpan timeout) throws java.lang.Throwable, ArgumentOutOfRangeException, ObjectDisposedException, AbandonedMutexException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ObjectDisposedException
AbandonedMutexException
-
SpinWait
public static void SpinWait(int iterations) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Start
public void Start() throws java.lang.Throwable, SecurityException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, NullReferenceException
- Throws:
java.lang.Throwable
SecurityException
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
InvalidOperationException
NullReferenceException
-
Start
public void Start(NetObject parameter) throws java.lang.Throwable, InvalidOperationException, SecurityException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NullReferenceException
- Throws:
java.lang.Throwable
InvalidOperationException
SecurityException
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
NullReferenceException
-
Suspend
public void Suspend() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
VolatileWrite
public static void VolatileWrite(JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Byte>> address, byte value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
VolatileWrite
public static void VolatileWrite(JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Double>> address, double value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
VolatileWrite
public static void VolatileWrite(JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Short>> address, short value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
VolatileWrite
public static void VolatileWrite(JCORefOut<java.util.concurrent.atomic.AtomicInteger> address, int value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
VolatileWrite
public static void VolatileWrite(JCORefOut<java.util.concurrent.atomic.AtomicLong> address, long value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
VolatileWrite
public static void VolatileWrite(JCORefOut<SByte> address, SByte value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
VolatileWrite
public static void VolatileWrite(JCORefOut<Single> address, Single value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
VolatileWrite
public static void VolatileWrite(JCORefOut<NetObject> address, NetObject value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
VolatileWrite
public static void VolatileWrite(JCORefOut<UInt16> address, UInt16 value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
VolatileWrite
public static void VolatileWrite(JCORefOut<UInt32> address, UInt32 value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
VolatileWrite
public static void VolatileWrite(JCORefOut<UInt64> address, UInt64 value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsAlive
public boolean getIsAlive() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsBackground
public boolean getIsBackground() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setIsBackground
public void setIsBackground(boolean IsBackground) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsThreadPoolThread
public boolean getIsThreadPoolThread() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getManagedThreadId
public int getManagedThreadId() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCurrentCulture
public CultureInfo getCurrentCulture() throws java.lang.Throwable, ArgumentNullException, TypeLoadException, InvalidOperationException, ArgumentException, SecurityException, MissingMethodException, TargetInvocationException, NotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ObjectDisposedException, CultureNotFoundException
- Throws:
java.lang.Throwable
ArgumentNullException
TypeLoadException
InvalidOperationException
ArgumentException
SecurityException
MissingMethodException
TargetInvocationException
NotSupportedException
ArgumentOutOfRangeException
IndexOutOfRangeException
ObjectDisposedException
CultureNotFoundException
-
setCurrentCulture
public void setCurrentCulture(CultureInfo CurrentCulture) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, SecurityException, ArgumentOutOfRangeException, NullReferenceException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
SecurityException
ArgumentOutOfRangeException
NullReferenceException
-
getCurrentUICulture
public CultureInfo getCurrentUICulture() throws java.lang.Throwable, ArgumentNullException, TypeLoadException, InvalidOperationException, ArgumentException, SecurityException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException
-
setCurrentUICulture
public void setCurrentUICulture(CultureInfo CurrentUICulture) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, SecurityException, NullReferenceException
-
getCurrentContext
public static Context getCurrentContext() throws java.lang.Throwable, ArgumentException, ArgumentNullException, InvalidOperationException, NullReferenceException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
InvalidOperationException
NullReferenceException
-
getCurrentPrincipal
public static IPrincipal getCurrentPrincipal() throws java.lang.Throwable, ArgumentException, InvalidOperationException, ArgumentNullException, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, SecurityException, NullReferenceException
-
setCurrentPrincipal
public static void setCurrentPrincipal(IPrincipal CurrentPrincipal) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentException, SecurityException, ArgumentOutOfRangeException, NullReferenceException
- Throws:
java.lang.Throwable
ArgumentNullException
InvalidOperationException
ArgumentException
SecurityException
ArgumentOutOfRangeException
NullReferenceException
-
getName
public java.lang.String getName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setName
public void setName(java.lang.String Name) throws java.lang.Throwable, ArgumentException, InvalidOperationException
- Throws:
java.lang.Throwable
ArgumentException
InvalidOperationException
-
getApartmentState
public ApartmentState getApartmentState() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setApartmentState
public void setApartmentState(ApartmentState ApartmentState) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getExecutionContext
public ExecutionContext getExecutionContext() throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentException, SecurityException, ArgumentOutOfRangeException, NullReferenceException
- Throws:
java.lang.Throwable
ArgumentNullException
InvalidOperationException
ArgumentException
SecurityException
ArgumentOutOfRangeException
NullReferenceException
-
getCurrentThread
public static Thread getCurrentThread() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getPriority
public ThreadPriority getPriority() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setPriority
public void setPriority(ThreadPriority Priority) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getThreadState
public ThreadState getThreadState() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-