TutThreadEqual compare two thread handles for equality
thread_1
first thread handle to compare
thread_2
second thread handle to compare
TRUE
if the handles are equal, FALSE
otherwise.
None
TutThreadEqual compares two T_THREAD values for equality. This function is necessary because some platforms use non-scalar values, such as structures, as thread handles.
Comparing two thread handles with C’s equality operator (==
) is non-portable.
This example checks for a successful return value from TutThreadCreate:
T_THREAD thread;
thread = TutThreadCreate(my_thread_func, NULL, NULL);
if (TutThreadEqual(T_INVALID_THREAD, thread)) {
/* error */
}
TIBCO SmartSockets™ Utilities Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |