pthread_join

Daniel Eischen eischen at pcnet1.pcnet.com
Sun Apr 27 08:02:09 PDT 2003


On Sun, 27 Apr 2003, David Xu wrote:
> I found I can not get the following race fixed:
> Thread A is a joiner of  thread B, thread C calls pthread_cancel on A,
> because of multipile scheduler locks,  I can not get the race fixed. 
> Is it possible we just use a single scheduler lock to simplify things a bit?

Hmm, you mean if thread A is already joined on B?  I don't see the
race.  Everything looks right.  We don't take multiple scheduling
locks at the same time, so everything should work.

-- 
Dan Eischen



More information about the freebsd-threads mailing list