Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jun 2009 17:59:12 +0400
From:      =?koi8-r?Q?=ED=C9=C8=C1=C9=CC_=EB=C9=D0=C1?= <msnkipa@mail.ru>
To:        freebsd-hackers@freebsd.org
Subject:   pthread_mutexattr_getprioceiling error?
Message-ID:  <E1MFTlI-0008Sd-00.msnkipa-mail-ru@f60.mail.ru>

next in thread | raw e-mail | index | archive | help
Next little program:
#include <pthread.h>
#include <iostream> 

int main()
{
        pthread_mutexattr_t t;
        if (pthread_mutexattr_init(&t)) return 1;
        int i;
        std::cout << pthread_mutexattr_getprioceiling(&t, &i) << std::endl;
}

always print 22. It means that pthread_mutexattr_getprioceiling always fails with EINVAL. Under Linux this example works fine, but under FreeBSD 7.2 it does`n work. Is it a bug in FreeBSD thread library or it ai my misunderstanding?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1MFTlI-0008Sd-00.msnkipa-mail-ru>