Open System Services Porting Guide (G06.24+, H06.03+)

Table Of Contents
Standard POSIX Threads Functions: Differences
Between the Previous and Current Standards
Open System Services Porting Guide520573-006
E-5
Changed Thread Functions
Table E-3 lists the functions that are new in Standard POSIX Threads.
void pthread_lock_
global_np();
int pthread_lock_global_np (void);
int pthread_mutex_init(
pthread_mutex_t
*mutex,
pthread_mutexattr_t
attr);
int pthread_mutex_init(
pthread_mutex_t *mutex,
const pthread_mutexattr_t *attr);
int
pthread_attr_
setinheritsched(
pthread_attr_t *attr,
int inherit);
int pthread_attr_setinheritsched(
pthread_attr_t *attr,
int inheritsched);
Table E-3. New Thread Functions
Function Description
pthread_atfork()
Declares fork handler routines to be called when the calling
thread's process forks a child process.
pthread_attr_
getdetachstate()
Obtains the detachstate attribute of the specified thread
attributes object.
pthread_attr_
setdetachstate()
Changes the detachstate attribute in the specified thread
attributes object.
pthread_key_
delete()
Deletes a thread-specific data key.
pthread_kill()
Delivers a signal to a specified thread.
pthread_sigmask()
Examines or changes the current thread's signal mask.
Table E-2. Thread Functions With Changed Parameters (page 2 of 2)
Syntax of Draft 4 Thread
Function Syntax of Standard POSIX Threads Function