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: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: mscorlib
|
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() |
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 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 |
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() |
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, ArgumentNullException, InvalidOperationException, SecurityException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionSecurityExceptionpublic Thread(ParameterizedThreadStart start, int maxStackSize) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, SecurityException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionSecurityExceptionpublic Thread(ThreadStart start) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, SecurityException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionSecurityExceptionpublic Thread(ThreadStart start, int maxStackSize) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, SecurityException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionSecurityExceptionpublic void Abort()
throws java.lang.Throwable
java.lang.Throwablepublic void Abort(NetObject stateInfo) throws java.lang.Throwable
java.lang.Throwablepublic static LocalDataStoreSlot AllocateDataSlot() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentExceptionArgumentNullExceptionpublic static LocalDataStoreSlot AllocateNamedDataSlot(java.lang.String name) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentExceptionArgumentNullExceptionpublic 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
java.lang.Throwablepublic 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,
ArgumentNullException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentExceptionArgumentNullExceptionpublic ApartmentState getApartmentState() throws java.lang.Throwable
java.lang.Throwablepublic ApartmentState GetApartmentState() throws java.lang.Throwable
java.lang.Throwablepublic CompressedStack GetCompressedStack() throws java.lang.Throwable, InvalidOperationException
java.lang.ThrowableInvalidOperationExceptionpublic static Context getCurrentContext() throws java.lang.Throwable, ArgumentException, ArgumentNullException, InvalidOperationException, NullReferenceException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionInvalidOperationExceptionNullReferenceExceptionpublic CultureInfo getCurrentCulture() throws java.lang.Throwable, ArgumentNullException, TypeLoadException, InvalidOperationException, ArgumentException, SecurityException, MissingMethodException, TargetInvocationException, NotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ObjectDisposedException, CultureNotFoundException
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionInvalidOperationExceptionArgumentExceptionSecurityExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionObjectDisposedExceptionCultureNotFoundExceptionpublic static IPrincipal getCurrentPrincipal() throws java.lang.Throwable, ArgumentException, InvalidOperationException, ArgumentNullException, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, SecurityException, NullReferenceException
public static Thread getCurrentThread() throws java.lang.Throwable
java.lang.Throwablepublic CultureInfo getCurrentUICulture() throws java.lang.Throwable, ArgumentNullException, TypeLoadException, InvalidOperationException, ArgumentException, SecurityException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException
public static NetObject GetData(LocalDataStoreSlot slot) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionpublic static AppDomain GetDomain() throws java.lang.Throwable
java.lang.Throwablepublic static int GetDomainID()
throws java.lang.Throwable
java.lang.Throwablepublic ExecutionContext getExecutionContext() throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentException, SecurityException, ArgumentOutOfRangeException, NullReferenceException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionArgumentExceptionSecurityExceptionArgumentOutOfRangeExceptionNullReferenceExceptionpublic 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, ArgumentNullException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentExceptionArgumentNullExceptionpublic ThreadPriority getPriority() throws java.lang.Throwable
java.lang.Throwablepublic ThreadState getThreadState() throws java.lang.Throwable
java.lang.Throwablepublic void Interrupt()
throws java.lang.Throwable
java.lang.Throwablepublic 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, ArgumentOutOfRangeException
java.lang.ThrowableArgumentOutOfRangeExceptionpublic static void MemoryBarrier()
throws java.lang.Throwable
java.lang.Throwablepublic static void ResetAbort()
throws java.lang.Throwable,
ThreadStateException
java.lang.ThrowableThreadStateExceptionpublic void Resume()
throws java.lang.Throwable
java.lang.Throwablepublic void setApartmentState(ApartmentState ApartmentState) throws java.lang.Throwable
java.lang.Throwablepublic void SetApartmentState(ApartmentState state) throws java.lang.Throwable, InvalidOperationException
java.lang.ThrowableInvalidOperationExceptionpublic void SetCompressedStack(CompressedStack stack) throws java.lang.Throwable, InvalidOperationException
java.lang.ThrowableInvalidOperationExceptionpublic void setCurrentCulture(CultureInfo CurrentCulture) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, SecurityException, ArgumentOutOfRangeException, NullReferenceException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionSecurityExceptionArgumentOutOfRangeExceptionNullReferenceExceptionpublic static void setCurrentPrincipal(IPrincipal CurrentPrincipal) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentException, SecurityException, ArgumentOutOfRangeException, NullReferenceException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionArgumentExceptionSecurityExceptionArgumentOutOfRangeExceptionNullReferenceExceptionpublic void setCurrentUICulture(CultureInfo CurrentUICulture) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, SecurityException, NullReferenceException
public static void SetData(LocalDataStoreSlot slot, NetObject data) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, ArgumentNullException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionArgumentNullExceptionpublic void setIsBackground(boolean IsBackground)
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,
ArgumentException,
InvalidOperationException
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionpublic void setPriority(ThreadPriority Priority) throws java.lang.Throwable
java.lang.Throwablepublic static void Sleep(int millisecondsTimeout)
throws java.lang.Throwable,
ObjectDisposedException,
AbandonedMutexException
java.lang.ThrowableObjectDisposedExceptionAbandonedMutexExceptionpublic static void Sleep(TimeSpan timeout) throws java.lang.Throwable, ArgumentOutOfRangeException, ObjectDisposedException, AbandonedMutexException
java.lang.ThrowableArgumentOutOfRangeExceptionObjectDisposedExceptionAbandonedMutexExceptionpublic static void SpinWait(int iterations)
throws java.lang.Throwable
java.lang.Throwablepublic void Start()
throws java.lang.Throwable,
SecurityException,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
InvalidOperationException,
NullReferenceException
java.lang.ThrowableSecurityExceptionArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNullReferenceExceptionpublic void Start(NetObject parameter) throws java.lang.Throwable, InvalidOperationException, SecurityException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NullReferenceException
java.lang.ThrowableInvalidOperationExceptionSecurityExceptionArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNullReferenceExceptionpublic void Suspend()
throws java.lang.Throwable
java.lang.Throwablepublic boolean TrySetApartmentState(ApartmentState state) throws java.lang.Throwable
java.lang.Throwablepublic static void VolatileWrite(JCORefOut<java.util.concurrent.atomic.AtomicInteger> address, int value) throws java.lang.Throwable
java.lang.Throwablepublic static void VolatileWrite(JCORefOut<java.util.concurrent.atomic.AtomicLong> address, long value) throws java.lang.Throwable
java.lang.Throwablepublic static void VolatileWrite(JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Byte>> address, byte value) throws java.lang.Throwable
java.lang.Throwablepublic static void VolatileWrite(JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Double>> address, double value) throws java.lang.Throwable
java.lang.Throwablepublic static void VolatileWrite(JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Short>> address, short value) throws java.lang.Throwable
java.lang.Throwablepublic static void VolatileWrite(JCORefOut<NetObject> address, NetObject value) throws java.lang.Throwable
java.lang.Throwablepublic static void VolatileWrite(JCORefOut<SByte> address, SByte value) throws java.lang.Throwable
java.lang.Throwablepublic static void VolatileWrite(JCORefOut<Single> address, Single value) throws java.lang.Throwable
java.lang.Throwablepublic static void VolatileWrite(JCORefOut<UInt16> address, UInt16 value) throws java.lang.Throwable
java.lang.Throwablepublic static void VolatileWrite(JCORefOut<UInt32> address, UInt32 value) throws java.lang.Throwable
java.lang.Throwablepublic static void VolatileWrite(JCORefOut<UInt64> address, UInt64 value) throws java.lang.Throwable
java.lang.Throwablepublic static boolean Yield()
throws java.lang.Throwable
java.lang.Throwable