Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Feb 2016 14:17:20 GMT
From:      Martin Simmons <martin@lispworks.com>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        vangyzen@FreeBSD.org, threads@FreeBSD.org, arch@FreeBSD.org
Subject:   Re: libthr shared locks
Message-ID:  <201602151417.u1FEHKwL003392@higson.cam.lispworks.com>
In-Reply-To: <20160213143815.GB91220@kib.kiev.ua> (message from Konstantin Belousov on Sat, 13 Feb 2016 16:38:15 %2B0200)
References:  <20151223172528.GT3625@kib.kiev.ua> <56BE69B8.9020808@FreeBSD.org> <20160213143815.GB91220@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
Is pthread_barrier_destroy making the wrong comparison?

+	if (barrier == THR_PSHARED_PTR) {

I think this should be *barrier.

Also, a general question: why not use some flag in the barrier (and other
objects) to indicate pshared, removing the need for __thr_pshared_offpage
except in init?

__Martin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602151417.u1FEHKwL003392>