GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
PTHREAD_MAIN_NP(3) FreeBSD Library Functions Manual PTHREAD_MAIN_NP(3)

pthread_main_np
identify the initial thread

POSIX Threads Library (libpthread, -lpthread)

#include <pthread_np.h>

int
pthread_main_np(void);

The pthread_main_np() function is used in userland threads environment to identify the initial thread. Its semantics is similar to the Solaris's thr_main() function.

The pthread_main_np() function returns 1 if the calling thread is the initial thread, 0 if the calling thread is not the initial thread, and -1 if the thread's initialization has not yet completed.

pthread_create(3), pthread_equal(3), pthread_np(3), pthread_self(3)

This manual page was written by Alexey Zelkin <phantom@FreeBSD.org>.
October 12, 2021 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.