Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pthread_self(3T) — SunOS 5.5.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

pthread_create(3T)

pthread_equal(3T)

pthread_self(3T)

NAME

pthread_self, thr_self − get calling thread’s ID

SYNOPSIS

POSIX

cc [ flag ... ] file ... −lpthread [ library ... ]

#include <pthread.h>
pthread_t pthread_self(void);

typedef unsigned int pthread_t;

Solaris

cc [ flag ... ] file ... −lthread [ library ... ]

#include <thread.h>
thread_t thr_self(void)

typedef unsigned int thread_t;

MT-LEVEL

MT-Safe

DESCRIPTION

thr_self() returns the thread ID of the calling thread. 

pthread_self() performs the same function as thr_self(). 

SEE ALSO

pthread_create(3T), pthread_equal(3T)

SunOS 5.5.1  —  Last change: 30 Jun 1995

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