(self, tid=None, handle=None, owner_pid=None, owner=None)
| 742 | """Represent a thread """ |
| 743 | |
| 744 | def __init__(self, tid=None, handle=None, owner_pid=None, owner=None): |
| 745 | if tid is None and handle is None: |
| 746 | raise ValueError("Need at least <pid> or <handle> to create a {0}".format(type(self).__name__)) |
| 747 | |
| 748 | if tid is not None: self._tid = tid |
| 749 | if handle is not None: self._handle = handle |
| 750 | if owner is not None: self._owner = owner |
| 751 | if owner_pid is not None: self._owner_pid = owner_pid |
| 752 | if owner_pid is None and owner: |
| 753 | self._owner_pid = owner.pid |
| 754 | |
| 755 | @classmethod |
| 756 | def _from_THREADENTRY32(cls, entry, owner=None): |
nothing calls this directly
no outgoing calls
no test coverage detected