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_NP(3) FreeBSD Library Functions Manual PTHREAD_NP(3)

pthread_npFreeBSD extensions to POSIX thread functions

POSIX Threads Library (libpthread, -lpthread)

#include <pthread_np.h>

This manual page documents extensions to the POSIX thread functions. These extensions may or may not be portable to other operating systems.

The POSIX thread functions are summarized in this section in the following groups:

  • Thread Routines
  • Attribute Object Routines
  • Mutex Routines

int (pthread_t td, size_t cpusetsize, cpuset_t *cpusetp);
Get the CPU affinity of a specified thread.
int (pthread_t thread, char *name, size_t len)
Get the name of a specified thread.
int (pthread_t thread, char *name, size_t len)
Get the name of a specified thread.
int (void)
Get the calling thread's integral ID.
int (void)
Identify the initial thread.
int (void)
Sets the thread's scheduling mode to multi-threaded.
int (pthread_t thread, void **value_ptr)
Peek into the exit status of a specified thread.
int (void)
Resume all suspended threads.
int (pthread_t td, size_t cpusetsize, const cpuset_t *cpusetp);
Set the CPU affinity of a specified thread.
int (pthread_t thread, char *name)
Sets the specified thread's name.
int (pthread_t thread, char *name)
Sets the specified thread's name.
int (void)
Sets the thread's scheduling mode to single-threaded.
int (pthread_t tid)
Suspend the specified thread.
int (void)
Suspend all active threads.
int (pthread_switch_routine_t routine)
Install a routine that is called every time a thread context switches.
int (pthread_switch_routine_t routine)
Remove a routine that is called every time a thread context switches.
int (pthread_t thread, void **value_ptr, const struct timespec *abstime);
A variant of () with a timeout.

int (pthread_t pid, pthread_attr_t *dst);
Get the attributes of an existent thread.
int (const pthread_attr_t *pattr, size_t cpusetsize, cpuset_t *cpusetp);
Get the CPU affinity mask from the thread attribute object.
int (pthread_attr_t *pattr, size_t cpusetsize, const cpuset_t *cpusetp);
Set the CPU affinity mask for the thread attribute object.
int (pthread_attr_t *attr)
Permit creation of suspended threads.

int (pthread_mutexattr_t attr)
Deprecated, use pthread_mutexattr_gettype(3) instead.
int (pthread_mutexattr_t *attr)
Deprecated, use pthread_mutexattr_settype(3) instead.

libthr(3), pthread(3), pthread_affinity_np(3), pthread_attr_affinity_np(3), pthread_attr_get_np(3), pthread_attr_setcreatesuspend_np(3), pthread_getthreadid_np(3), pthread_join(3), pthread_main_np(3), pthread_multi_np(3), pthread_mutexattr_getkind_np(3), pthread_resume_all_np(3), pthread_resume_np(3), pthread_set_name_np(3), pthread_suspend_all_np(3), pthread_suspend_np(3), pthread_switch_add_np(3)

All of these functions are non-portable extensions to POSIX threads.

October 12, 2021 FreeBSD 14.3-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.