Modifier and Type | Field and Description |
---|---|
private BsdDebugger | |
private int | |
private long |
Access | Constructor and Description |
---|---|
pack-priv | BsdThread(BsdDebugger debugger, Address threadIdAddr, Address uniqueThreadIdAddr)
The address argument must be the address of the _thread_id in the OSThread. |
pack-priv |
Modifier and Type | Method and Description |
---|---|
public boolean | canSetContext()
Implements sun. Indicates whether calls to setContext() are valid. |
public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
public ThreadContext | getContext()
Implements sun. Retrieves the context for the given thread. |
public long | getUniqueThreadId()
this is not interface function, used in core file to get unique thread id on Macosx |
public int | |
public void | setContext(ThreadContext context)
Implements sun. Sets the context for the given thread. |
public String |
debugger | back to summary |
---|---|
private BsdDebugger debugger |
thread_id | back to summary |
---|---|
private int thread_id |
unique_thread_id | back to summary |
---|---|
private long unique_thread_id |
BsdThread | back to summary |
---|---|
pack-priv BsdThread(BsdDebugger debugger, Address threadIdAddr, Address uniqueThreadIdAddr) The address argument must be the address of the _thread_id in the OSThread. It's value is result ::gettid() call. |
BsdThread | back to summary |
---|---|
pack-priv BsdThread(BsdDebugger debugger, long id) |
canSetContext | back to summary |
---|---|
public boolean canSetContext() throws DebuggerException Implements sun. Doc from sun. Indicates whether calls to setContext() are valid. |
equals | back to summary |
---|---|
public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
|
getContext | back to summary |
---|---|
public ThreadContext getContext() throws IllegalThreadStateException Implements sun. Doc from sun. Retrieves the context for the given thread. It is only valid to call this method if the thread is suspended (i.e., the process has not been resumed via ProcessControl); throws an IllegalThreadStateException if it is not. |
getUniqueThreadId | back to summary |
---|---|
public long getUniqueThreadId() this is not interface function, used in core file to get unique thread id on Macosx |
hashCode | back to summary |
---|---|
public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
|
setContext | back to summary |
---|---|
public void setContext(ThreadContext context) throws IllegalThreadStateException, DebuggerException Implements sun. Doc from sun. Sets the context for the given thread. The passed ThreadContext must be a modified version of one returned from a previous call to getContext(). It is only valid to call this method if the thread is suspended (i.e., the process has not been resumed via ProcessControl); throws an IllegalThreadStateException if it is not. Throws a DebuggerException if the target process can not be modified, for example because it is a core file. |
toString | back to summary |
---|---|
public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
|