Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

pthread_create(3)

pthread_equal(3)

NAME

pthread_equal - Compares one thread identifier to another thread identifier. 

SYNOPSIS

#include <pthread.h> boolean32 pthread_equal( pthread_t *thread1, pthread_t *thread2);

PARAMETERS

thread1
The first thread identifier to be compared.

thread2
The second thread identifier to be compared.

DESCRIPTION

This routine compares one thread identifier to another thread identifier. (This routine does not check whether the objects that correspond to the identifiers currently exist.) If the identifiers have values indicating that they designate the same object, 1 (true) is returned. If the values do not designate the same object, 0 (false) is returned.  This routine is implemented as a C macro. 

RETURN VALUES

Possible return values are as follows:

Return Error Description
0 Values of thread1 and thread2 do not designate the same object.
1 Values of thread1 and thread2 designate the same object.

EXAMPLES

equal = pthread_equal (thread1, thread2)

RELATED INFORMATION

Functions: pthread_create(3)

Hewlett-Packard Company  —  OSF DCE 1.1/HP DCE 1.5

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026