Подробности
        
                          [В начало]
Проблема в реализации № S0849
Краткое описание
pthread_mutexattr_gettype() всегда возвращает 512
Подробное описание
После вызова pthread_mutexattr_settype c любым значением pthread_mutexattr_gettype возвращает всегда 512.
Пример
// 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;
}
                    Компонент
glibc 2.18
Принято
https://sourceware.org/bugzilla/show_bug.cgi?id=15790
Статус
NEW
[В начало]
»