Index of Section 2 Manual Pages

Interix / SUApthread_condattr_destroy.2Interix / SUA

pthread_condattr_destroy(2)                 pthread_condattr_destroy(2)

  pthread_condattr_destroy()

  NAME

    pthread_condattr_destroy(), int pthread_condattr_init() - initialize or
    destroy a condition variable attributes object

  SYNOPSIS

    #include 

    int pthread_condattr_destroy(pthread_condattr_t *attr);
    int pthread_condattr_init(pthread_condattr_t *attr);

  DESCRIPTION

    The pthread_condattr_init(2) function initializes the condition variable
    attributes object referenced by attr with default values. This object is
    supplied to the pthread_cond_init(2) function to specify the attributes of
    the condition variable when it is initialized.

    The pthread_condattr_destroy(2) function destroys a condition variable
    attributes object.

  RETURN VALUES

    On success, both functions return 0; otherwise, an error code is returned.

  ERRORS

    The pthread_condattr_destroy() function can fail for the following reason:

    [EINVAL]
        The attr argument does not refer to a valid condition variable
        attributes object.

    The pthread_condattr_init() function can fail for the following reason:

    [ENOMEM]
        There is not enough free memory to initialize the condition variable
        attributes object

    This function does not return [EINTR].

  SEE ALSO

    pthread_attr_destroy(2)

    pthread_cond_destroy(2)

    pthread_condattr_getpshared(2)

    pthread_create(2)

    pthread_mutex_destroy(2)

  USAGE NOTES

    All of these functions are thread safe.

    None of these functions are async-signal safe.


Interix / SUAHosted at SUA Community for Interix, SUA and SFUInterix / SUA