System thread primitives.
sys
typing0
types0
signal0
_thread0
runtime0
create0
create = _thread.start_new_thread
amutex0
amutex = _thread.allocate_lock
identify0
identify = _thread.get_ident
Sever0
Exception used to signal thread kills.
Sever__kill__
__kill__ = True
snapshot325%typing.Sequence[typing.Tuple[int, types.FrameType]]
snapshot(tids)
Select a set of threads from the same snapshot of frames.
interrupt70%
interrupt(tid, exception)
Raise the given exception in the thread with the given identifier, tid.
The thread being interrupted will be signalled after the exception has been set. This helps ensure that system calls will not stop the exception from being raised in order to kill the thread.
| WARNING | |
Cases where usage is appropriate is rare. Managing the interruption of threads in this fashion is only appropriate in certain applications. |
interruptParameters
frame325%types.FrameType
frame(tid)
Select the frame of the thread's identifier.
frameParameters
tidint
Identifier of the thread returned by create_thread or identify_thread. Returns None when the thread is not running.
Transition0
A synchronization mechanism used to perform a single transfer between threads. Alternatively described as a queue with a transfer limit of one item.
Transition__slots__0
__slots__ = ('mutex', 'message')
Transition__init__30%
__init__(self)
Transition__iter__10%
__iter__(self)
Transitioncommit50%
commit(self)
Commit to the transition. If the object hasn't been placed, block until it is.
A RuntimeError will be raised upon multiple invocations of commit.
Transitiontransfer30%
transfer(self, message)
Send message to the receiving thread.