| | | |
- allocate_lock(...)
- 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.
- 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.
- sleep(...)
- sleep(seconds)
-
- Delay execution for a given number of seconds. The argument may be
- a floating point number for subsecond precision.
- start_new_thread(...)
- start_new_thread(functon, args[, kwargs])
- (start_new() is an obsolete synonym)
-
- Start a new thread. 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.
- time(...)
- time() -> floating point number
-
- Return the current time in seconds since the Epoch.
- Fractions of a second may be present if the system clock provides them.
|