libthr shared locks

Martin Simmons martin at
Tue Feb 16 16:17:57 UTC 2016

>>>>> On Mon, 15 Feb 2016 19:56:21 +0200, Konstantin Belousov said:
> One process which executed pthread_barrier_init(), performed what you
> proposed. What should do the pthread_barrier_wait() call in another
> process, which shares the 'barrier' with the first process, but does
> not share the whole address space ? After your pthread_barrier_init()
> executed, barrier contains the address of the object (off-page) in the
> other address space, for that process.

Ah, sorry, I understand now (the init functions are called before any

How should the destroy functions be used by the processes?  I.e. should only
the "last" process call destroy or can every process call it?

More information about the freebsd-threads mailing list