posix 1. Brief 2. Syntax 3. Param 4. Return Value 5. Remark

pthread_mutexattr_t

1
2
3
4
5
typedef union
{
char __size[__SIZEOF_PTHREAD_MUTEXATTR_T];
int __align;
} pthread_mutexattr_t;
1
2
3
4
5
6
7
8
9
#ifdef __x86_64__
# if __WORDSIZE == 64
# define __SIZEOF_PTHREAD_MUTEXATTR_T 4
# else
# define __SIZEOF_PTHREAD_MUTEXATTR_T 4
# endif
#else
# define __SIZEOF_PTHREAD_MUTEXATTR_T 4
#endif

1. Brief

2. Syntax

1
#include <pthread.h>
1
int pthread_mutexattr_destroy(pthread_mutexattr_t *attr);

3. Param

3.1 attr

4. Return Value

5. Remark