public class Thread extends CriticalFinalizerObject
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Thread
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.Threading.Thread
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and 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) |
| Modifier and Type | Method and 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 the
IJCOBridgeReflected instance into Thread, 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() |
CultureInfo |
getCurrentCulture() |
static IPrincipal |
getCurrentPrincipal() |
static int |
GetCurrentProcessorId() |
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 name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
int |
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 |
setIsThreadPoolThread(boolean IsThreadPoolThread) |
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) |
void |
UnsafeStart() |
void |
UnsafeStart(NetObject parameter) |
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() |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Thread()
throws java.lang.Throwable
java.lang.Throwablepublic Thread(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic Thread(ParameterizedThreadStart start) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public Thread(ParameterizedThreadStart start, int maxStackSize) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public Thread(ThreadStart start) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public Thread(ThreadStart start, int maxStackSize) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public void Abort()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
IndexOutOfRangeException,
RankException,
CultureNotFoundException,
ObjectDisposedException
public void Abort(NetObject stateInfo) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
public static LocalDataStoreSlot AllocateDataSlot() throws java.lang.Throwable, LockRecursionException, AbandonedMutexException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, RankException, ArgumentException, ArrayTypeMismatchException, InvalidOperationException, SynchronizationLockException
public static LocalDataStoreSlot AllocateNamedDataSlot(java.lang.String name) throws java.lang.Throwable, LockRecursionException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, SynchronizationLockException, ArgumentNullException, NullReferenceException, NotSupportedException
public static void BeginCriticalRegion()
throws java.lang.Throwable
java.lang.Throwablepublic static void BeginThreadAffinity()
throws java.lang.Throwable
java.lang.Throwablepublic static Thread cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Thread, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedThread instancejava.lang.Throwable - in case of error during cast operationpublic void DisableComObjectEagerCleanup()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException
public static void EndCriticalRegion()
throws java.lang.Throwable
java.lang.Throwablepublic static void EndThreadAffinity()
throws java.lang.Throwable
java.lang.Throwablepublic static void FreeNamedDataSlot(java.lang.String name)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ArgumentException,
PlatformNotSupportedException,
IndexOutOfRangeException,
NullReferenceException,
NotSupportedException,
ArgumentNullException,
InvalidOperationException
public ApartmentState getApartmentState() throws java.lang.Throwable
java.lang.Throwablepublic ApartmentState GetApartmentState() throws java.lang.Throwable
java.lang.Throwablepublic CompressedStack GetCompressedStack() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
public CultureInfo getCurrentCulture() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
public static IPrincipal getCurrentPrincipal() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, NullReferenceException, TypeLoadException, IndexOutOfRangeException, FormatException, FileLoadException, FileNotFoundException
public static int GetCurrentProcessorId()
throws java.lang.Throwable
java.lang.Throwablepublic static Thread getCurrentThread() throws java.lang.Throwable
java.lang.Throwablepublic CultureInfo getCurrentUICulture() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
public static NetObject GetData(LocalDataStoreSlot slot) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, SynchronizationLockException
public static AppDomain GetDomain() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, NullReferenceException
public static int GetDomainID()
throws java.lang.Throwable
java.lang.Throwablepublic ExecutionContext getExecutionContext() throws java.lang.Throwable
java.lang.Throwablepublic boolean getIsAlive()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getIsBackground()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getIsThreadPoolThread()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class CriticalFinalizerObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class CriticalFinalizerObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class CriticalFinalizerObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class CriticalFinalizerObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class CriticalFinalizerObjectJCType representing the CLR Type of the instantiated Classpublic int getManagedThreadId()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getName()
throws java.lang.Throwable
java.lang.Throwablepublic static LocalDataStoreSlot GetNamedDataSlot(java.lang.String name) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, NullReferenceException, NotSupportedException, ArgumentNullException, InvalidOperationException, LockRecursionException, SynchronizationLockException
public ThreadPriority getPriority() throws java.lang.Throwable
java.lang.Throwablepublic ThreadState getThreadState() throws java.lang.Throwable
java.lang.Throwablepublic void Interrupt()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException
public void Join()
throws java.lang.Throwable
java.lang.Throwablepublic boolean Join(int millisecondsTimeout)
throws java.lang.Throwable
java.lang.Throwablepublic boolean Join(TimeSpan timeout) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
public static void MemoryBarrier()
throws java.lang.Throwable
java.lang.Throwablepublic static void ResetAbort()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
IndexOutOfRangeException,
RankException,
CultureNotFoundException,
ObjectDisposedException
public void Resume()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
IndexOutOfRangeException,
RankException,
CultureNotFoundException,
ObjectDisposedException
public void setApartmentState(ApartmentState ApartmentState) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
public void SetApartmentState(ApartmentState state) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
public void SetCompressedStack(CompressedStack stack) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
public void setCurrentCulture(CultureInfo CurrentCulture) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException
public static void setCurrentPrincipal(IPrincipal CurrentPrincipal) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, NullReferenceException
public void setCurrentUICulture(CultureInfo CurrentUICulture) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, NullReferenceException
public static void SetData(LocalDataStoreSlot slot, NetObject data) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ObjectDisposedException, PlatformNotSupportedException, LockRecursionException, AbandonedMutexException, SynchronizationLockException
public void setIsBackground(boolean IsBackground)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException
public void setIsThreadPoolThread(boolean IsThreadPoolThread)
throws java.lang.Throwable
java.lang.Throwablepublic void setJCOInstance(JCObject instance)
setJCOInstance in class CriticalFinalizerObjectpublic void setName(java.lang.String Name)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
ArgumentException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
public void setPriority(ThreadPriority Priority) throws java.lang.Throwable
java.lang.Throwablepublic static void Sleep(int millisecondsTimeout)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException
public static void Sleep(TimeSpan timeout) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
public static void SpinWait(int iterations)
throws java.lang.Throwable
java.lang.Throwablepublic void Start()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
InvalidOperationException,
ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionpublic void Start(NetObject parameter) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
public void Suspend()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
IndexOutOfRangeException,
RankException,
CultureNotFoundException,
ObjectDisposedException
public boolean TrySetApartmentState(ApartmentState state) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
public void UnsafeStart()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
InvalidOperationException,
ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionpublic void UnsafeStart(NetObject parameter) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
public static void VolatileWrite(JCORefOut<java.util.concurrent.atomic.AtomicInteger> address, int value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static void VolatileWrite(JCORefOut<java.util.concurrent.atomic.AtomicLong> address, long value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static void VolatileWrite(JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Byte>> address, byte value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static void VolatileWrite(JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Double>> address, double value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static void VolatileWrite(JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Short>> address, short value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static void VolatileWrite(JCORefOut<NetObject> address, NetObject value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static void VolatileWrite(JCORefOut<SByte> address, SByte value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static void VolatileWrite(JCORefOut<Single> address, Single value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static void VolatileWrite(JCORefOut<UInt16> address, UInt16 value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static void VolatileWrite(JCORefOut<UInt32> address, UInt32 value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static void VolatileWrite(JCORefOut<UInt64> address, UInt64 value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static boolean Yield()
throws java.lang.Throwable
java.lang.Throwable