| | |
- allocate(...)
- allocate_lock() -> lock object
(allocate() is an obsolete synonym)
Create a new lock object. See LockType.__doc__ for information about locks.
- allocate_lock(...)
- allocate_lock() -> lock object
(allocate() is an obsolete synonym)
Create a new lock object. See LockType.__doc__ for information about locks.
- exit(...)
- exit()
(PyThread_exit_thread() is an obsolete synonym)
This is synonymous to ``raise SystemExit''. It will cause the current
thread to exit silently unless the exception is caught.
- exit_thread(...)
- exit()
(PyThread_exit_thread() is an obsolete synonym)
This is synonymous to ``raise SystemExit''. It will cause the current
thread to exit silently unless the exception is caught.
- get_ident(...)
- get_ident() -> integer
Return a non-zero integer that uniquely identifies the current thread
amongst other threads that exist simultaneously.
This may be used to identify per-thread resources.
Even though on some platforms threads identities may appear to be
allocated consecutive numbers starting at 1, this behavior should not
be relied upon, and the number should be seen purely as a magic cookie.
A thread's identity may be reused for another thread after it exits.
- start_new(...)
- start_new_thread(function, args[, kwargs])
(start_new() is an obsolete synonym)
Start a new thread and return its identifier. The thread will call the
function with positional arguments from the tuple args and keyword arguments
taken from the optional dictionary kwargs. The thread exits when the
function returns; the return value is ignored. The thread will also exit
when the function raises an unhandled exception; a stack trace will be
printed unless the exception is SystemExit.
- start_new_thread(...)
- start_new_thread(function, args[, kwargs])
(start_new() is an obsolete synonym)
Start a new thread and return its identifier. The thread will call the
function with positional arguments from the tuple args and keyword arguments
taken from the optional dictionary kwargs. The thread exits when the
function returns; the return value is ignored. The thread will also exit
when the function raises an unhandled exception; a stack trace will be
printed unless the exception is SystemExit.
|