Up: Non-POSIX Extensions [Contents][Index]
The GNU C Library provides non-standard API functions to set and get the default attributes used in the creation of threads in a process.
Preliminary: | MT-Safe | AS-Unsafe lock | AC-Unsafe lock | See POSIX Safety Concepts.
Get the default attribute values and set attr to match. This function returns 0 on success and a non-zero error code on failure.
Preliminary: | MT-Safe | AS-Unsafe heap lock | AC-Unsafe lock mem | See POSIX Safety Concepts.
Set the default attribute values to match the values in attr. The function returns 0 on success and a non-zero error code on failure. The following error codes are defined for this function:
EINVAL
At least one of the values in attr does not qualify as valid for the attributes or the stack address is set in the attribute.
ENOMEM
The system does not have sufficient memory.
const struct timespec *abstime)
Behaves like sem_timedwait
except the time abstime is measured
against the clock specified by clockid rather than
CLOCK_REALTIME
. Currently, clockid must be either
CLOCK_MONOTONIC
or CLOCK_REALTIME
.
clockid_t clockid, const struct timespec *abstime) Preliminary: | MT-Safe | AS-Unsafe lock | AC-Unsafe lock | See POSIX Safety Concepts.
Behaves like pthread_cond_timedwait
except the time abstime is
measured against the clock specified by clockid rather than the clock
specified or defaulted when pthread_cond_init
was called. Currently,
clockid must be either CLOCK_MONOTONIC
or
CLOCK_REALTIME
.
clockid_t clockid, const struct timespec *abstime)
Preliminary: | MT-Safe | AS-Unsafe lock | AC-Unsafe lock | See POSIX Safety Concepts.
Behaves like pthread_rwlock_timedrdlock
except the time
abstime is measured against the clock specified by clockid
rather than CLOCK_REALTIME
. Currently, clockid must be either
CLOCK_MONOTONIC
or CLOCK_REALTIME
, otherwise EINVAL
is
returned.
clockid_t clockid, const struct timespec *abstime)
Preliminary: | MT-Safe | AS-Unsafe lock | AC-Unsafe lock | See POSIX Safety Concepts.
Behaves like pthread_rwlock_timedwrlock
except the time
abstime is measured against the clock specified by clockid
rather than CLOCK_REALTIME
. Currently, clockid must be either
CLOCK_MONOTONIC
or CLOCK_REALTIME
, otherwise EINVAL
is
returned.
void **thread_return)
Preliminary: | MT-Safe | AS-Unsafe lock | AC-Unsafe lock | See POSIX Safety Concepts.
Behaves like pthread_join
except that it will return EBUSY
immediately if the thread specified by thread has not yet terminated.
void **thread_return, const struct timespec *abstime)
Preliminary: | MT-Safe | AS-Unsafe lock | AC-Unsafe lock | See POSIX Safety Concepts.
Behaves like pthread_tryjoin_np
except that it will block until the
absolute time abstime measured against CLOCK_REALTIME
is
reached if the thread has not terminated by that time and return
EBUSY
. If abstime is equal to NULL
then the function
will wait forever in the same way as pthread_join
.
void **thread_return, clockid_t clockid, const struct timespec *abstime)
Preliminary: | MT-Safe | AS-Unsafe lock | AC-Unsafe lock | See POSIX Safety Concepts.
Behaves like pthread_timedjoin_np
except that the absolute time in
abstime is measured against the clock specified by clockid.
Up: Non-POSIX Extensions [Contents][Index]