class Thread:
Represents some basic information about a thread.
This object is not meant to be constructed directly. Use OssiContext.thread instead.
| Method | __init__ |
Initializes a new Thread instance from a low-level object. |
| Property | id |
Property: The id of the thread |
| Property | owner_process_id |
Property: ID of the process that owns the thread |
| Method | owner_process |
Owner process of the thread |
| Method | __repr__ |
Undocumented |
| Method | __str__ |
Undocumented |
| Instance Variable | _rvn_thread |
Undocumented |
| Instance Variable | _ctx_id |
Undocumented |
| Instance Variable | _datasource |
Undocumented |
Initializes a new Thread instance from a low-level object.
This object is not meant to be constructed directly. Use OssiContext.thread instead.
| Parameters | _rvn_thread | Undocumented |
| _ctx_id | Undocumented | |
| _datasource | Undocumented | |
| _rvn_process | low-level process |
Owner process of the thread
The owner process of a thread is the process where the thread was started. On Windows, a process can attach its thread to another thread, possibly in a different process (see the AttachThreadInput function).
In that case, the owner process can be different from the currently running process. return self._datasource.query_owner_process_of_current_thread(self._ctx_id)
| Returns | Undocumented (type: _Optional[_Process]) | |