Details
[Home]
Issue of the Implementation # S0849
Brief
pthread_mutexattr_gettype() always returns 512
Detailed Description
After {/interface}pthread_mutexattr_settype{/interface} call, pthread_mutexattr_gettype always returns 512.
Example
// source: https://sourceware.org/bugzilla/show_bug.cgi?id=15790#c1
#include <stdio.h>
#include <pthread.h>
int main()
{
pthread_mutexattr_t attr;
pthread_mutexattr_init(&attr);
int res1 = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL);
int type = 0;
int res2 = pthread_mutexattr_gettype(&attr, &type);
printf("%d, %d, %d", res1, res2, type);
return 0;
}
Component
glibc 2.18
Accepted
https://sourceware.org/bugzilla/show_bug.cgi?id=15790
Status
NEW
[Home]
»