Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Oct 2017 21:05:35 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-threads@FreeBSD.org
Subject:   [Bug 222202] Error when creating new thread via thr_new and trying set it priority to RTP_PRIO_IDLE
Message-ID:  <bug-222202-16-uSBP6zMJZj@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-222202-16@https.bugs.freebsd.org/bugzilla/>
References:  <bug-222202-16@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222202

Jilles Tjoelker <jilles@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jilles@FreeBSD.org

--- Comment #1 from Jilles Tjoelker <jilles@FreeBSD.org> ---
It looks like libthr does not have any support for RTP_PRIO_IDLE either.
Perhaps this is because the risk of a non-idle thread getting blocked by an
idle thread is high (for example, if an idle thread has locked data structures
used by malloc()).

A workaround is possible by calling rtprio_thread() manually using the id from
pthread_getthreadid_np().

-- 
You are receiving this mail because:
You are the assignee for the bug.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-222202-16-uSBP6zMJZj>