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.StringassemblyFullNameFully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: mscorlibstatic java.lang.StringclassNameQualified class name: System.Threading.Threadstatic JCTypeclassTypeThe 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 voidAbort()voidAbort(NetObject stateInfo)static LocalDataStoreSlotAllocateDataSlot()static LocalDataStoreSlotAllocateNamedDataSlot(java.lang.String name)static voidBeginCriticalRegion()static voidBeginThreadAffinity()static Threadcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoThread, a cast assert is made to check if types are compatible.voidDisableComObjectEagerCleanup()static voidEndCriticalRegion()static voidEndThreadAffinity()static voidFreeNamedDataSlot(java.lang.String name)ApartmentStategetApartmentState()ApartmentStateGetApartmentState()CompressedStackGetCompressedStack()static ContextgetCurrentContext()CultureInfogetCurrentCulture()static IPrincipalgetCurrentPrincipal()static ThreadgetCurrentThread()CultureInfogetCurrentUICulture()static NetObjectGetData(LocalDataStoreSlot slot)static AppDomainGetDomain()static intGetDomainID()ExecutionContextgetExecutionContext()booleangetIsAlive()booleangetIsBackground()booleangetIsThreadPoolThread()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeintgetManagedThreadId()java.lang.StringgetName()static LocalDataStoreSlotGetNamedDataSlot(java.lang.String name)ThreadPrioritygetPriority()ThreadStategetThreadState()voidInterrupt()voidJoin()booleanJoin(int millisecondsTimeout)booleanJoin(TimeSpan timeout)static voidMemoryBarrier()static voidResetAbort()voidResume()voidsetApartmentState(ApartmentState ApartmentState)voidSetApartmentState(ApartmentState state)voidSetCompressedStack(CompressedStack stack)voidsetCurrentCulture(CultureInfo CurrentCulture)static voidsetCurrentPrincipal(IPrincipal CurrentPrincipal)voidsetCurrentUICulture(CultureInfo CurrentUICulture)static voidSetData(LocalDataStoreSlot slot, NetObject data)voidsetIsBackground(boolean IsBackground)voidsetJCOInstance(JCObject instance)voidsetName(java.lang.String Name)voidsetPriority(ThreadPriority Priority)static voidSleep(int millisecondsTimeout)static voidSleep(TimeSpan timeout)static voidSpinWait(int iterations)voidStart()voidStart(NetObject parameter)voidSuspend()booleanTrySetApartmentState(ApartmentState state)static voidVolatileWrite(JCORefOut<java.util.concurrent.atomic.AtomicInteger> address, int value)static voidVolatileWrite(JCORefOut<java.util.concurrent.atomic.AtomicLong> address, long value)static voidVolatileWrite(JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Byte>> address, byte value)static voidVolatileWrite(JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Double>> address, double value)static voidVolatileWrite(JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Short>> address, short value)static voidVolatileWrite(JCORefOut<NetObject> address, NetObject value)static voidVolatileWrite(JCORefOut<SByte> address, SByte value)static voidVolatileWrite(JCORefOut<Single> address, Single value)static voidVolatileWrite(JCORefOut<UInt16> address, UInt16 value)static voidVolatileWrite(JCORefOut<UInt32> address, UInt32 value)static voidVolatileWrite(JCORefOut<UInt64> address, UInt64 value)static booleanYield()
-
-
-
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.ThrowableInternal 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.ThrowableArgumentNullExceptionInvalidOperationExceptionSecurityException
-
Thread
public Thread(ParameterizedThreadStart start, int maxStackSize) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, SecurityException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionSecurityException
-
Thread
public Thread(ThreadStart start) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, SecurityException
- Throws:
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionSecurityException
-
Thread
public Thread(ThreadStart start, int maxStackSize) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, SecurityException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionSecurityException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classCriticalFinalizerObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classCriticalFinalizerObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classCriticalFinalizerObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classCriticalFinalizerObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classCriticalFinalizerObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classCriticalFinalizerObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static Thread cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoThread, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
Threadinstance- 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.ThrowableArgumentOutOfRangeException
-
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.ThrowableArgumentOutOfRangeExceptionArgumentExceptionArgumentNullException
-
AllocateNamedDataSlot
public static LocalDataStoreSlot AllocateNamedDataSlot(java.lang.String name) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentExceptionArgumentNullException
-
GetNamedDataSlot
public static LocalDataStoreSlot GetNamedDataSlot(java.lang.String name) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentExceptionArgumentNullException
-
GetData
public static NetObject GetData(LocalDataStoreSlot slot) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationException
-
GetApartmentState
public ApartmentState GetApartmentState() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetCompressedStack
public CompressedStack GetCompressedStack() throws java.lang.Throwable, InvalidOperationException
- Throws:
java.lang.ThrowableInvalidOperationException
-
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.ThrowableArgumentOutOfRangeExceptionArgumentExceptionArgumentNullException
-
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.ThrowableThreadStateException
-
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.ThrowableInvalidOperationException
-
SetCompressedStack
public void SetCompressedStack(CompressedStack stack) throws java.lang.Throwable, InvalidOperationException
- Throws:
java.lang.ThrowableInvalidOperationException
-
SetData
public static void SetData(LocalDataStoreSlot slot, NetObject data) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, ArgumentNullException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionArgumentNullException
-
Sleep
public static void Sleep(int millisecondsTimeout) throws java.lang.Throwable, ObjectDisposedException, AbandonedMutexException- Throws:
java.lang.ThrowableObjectDisposedExceptionAbandonedMutexException
-
Sleep
public static void Sleep(TimeSpan timeout) throws java.lang.Throwable, ArgumentOutOfRangeException, ObjectDisposedException, AbandonedMutexException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionObjectDisposedExceptionAbandonedMutexException
-
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.ThrowableSecurityExceptionArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNullReferenceException
-
Start
public void Start(NetObject parameter) throws java.lang.Throwable, InvalidOperationException, SecurityException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NullReferenceException
- Throws:
java.lang.ThrowableInvalidOperationExceptionSecurityExceptionArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNullReferenceException
-
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.ThrowableArgumentNullExceptionTypeLoadExceptionInvalidOperationExceptionArgumentExceptionSecurityExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionObjectDisposedExceptionCultureNotFoundException
-
setCurrentCulture
public void setCurrentCulture(CultureInfo CurrentCulture) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, SecurityException, ArgumentOutOfRangeException, NullReferenceException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionSecurityExceptionArgumentOutOfRangeExceptionNullReferenceException
-
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.ThrowableArgumentExceptionArgumentNullExceptionInvalidOperationExceptionNullReferenceException
-
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.ThrowableArgumentNullExceptionInvalidOperationExceptionArgumentExceptionSecurityExceptionArgumentOutOfRangeExceptionNullReferenceException
-
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.ThrowableArgumentExceptionInvalidOperationException
-
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.ThrowableArgumentNullExceptionInvalidOperationExceptionArgumentExceptionSecurityExceptionArgumentOutOfRangeExceptionNullReferenceException
-
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
-
-