get_threading_attribT_get_threading_attribGetThreadingAttribGetThreadingAttribget_threading_attrib (Operator)
Name
get_threading_attribT_get_threading_attribGetThreadingAttribGetThreadingAttribget_threading_attrib
— Query the attributes of a threading / synchronization object.
Signature
def get_threading_attrib(threading_handle: int) -> Tuple[Sequence[str], Sequence[str], Sequence[Union[int, float, str]]]
Description
get_threading_attribget_threading_attribGetThreadingAttribGetThreadingAttribGetThreadingAttribget_threading_attrib
determines the type of threading object passed
to ThreadingHandleThreadingHandleThreadingHandleThreadingHandlethreadingHandlethreading_handle
and the attributes the threading object was
created with.
Execution Information
- Multithreading type: independent (runs in parallel even with exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
ThreadingHandleThreadingHandleThreadingHandleThreadingHandlethreadingHandlethreading_handle
(input_control) number →
HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Threading object.
ThreadingClassThreadingClassThreadingClassThreadingClassthreadingClassthreading_class
(output_control) string-array →
HTupleSequence[str]HTupleHtuple (string) (string) (HString) (char*)
Class name of threading object.
AttribNameAttribNameAttribNameAttribNameattribNameattrib_name
(output_control) string-array →
HTupleSequence[str]HTupleHtuple (string) (string) (HString) (char*)
Name of an attribute.
AttribValueAttribValueAttribValueAttribValueattribValueattrib_value
(output_control) number-array →
HTupleSequence[Union[int, float, str]]HTupleHtuple (string / integer / real) (string / int / long / double) (HString / Hlong / double) (char* / Hlong / double)
Value of the attribute.
Result
If the threading handle is valid, the operator get_threading_attribget_threading_attribGetThreadingAttribGetThreadingAttribGetThreadingAttribget_threading_attrib
returns 2 (
H_MSG_TRUE)
. If necessary, an exception is raised.
Possible Successors
create_mutexcreate_mutexCreateMutexCreateMutexCreateMutexcreate_mutex
,
create_eventcreate_eventCreateEventCreateEventCreateEventcreate_event
,
create_conditioncreate_conditionCreateConditionCreateConditionCreateConditioncreate_condition
,
create_barriercreate_barrierCreateBarrierCreateBarrierCreateBarriercreate_barrier
See also
create_mutexcreate_mutexCreateMutexCreateMutexCreateMutexcreate_mutex
,
create_eventcreate_eventCreateEventCreateEventCreateEventcreate_event
,
create_conditioncreate_conditionCreateConditionCreateConditionCreateConditioncreate_condition
,
create_barriercreate_barrierCreateBarrierCreateBarrierCreateBarriercreate_barrier
Module
Foundation