Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Oct 1998 07:57:15 +1000 (EST)
From:      John Birrell  <jb@cimlogic.com.au>
To:        nash@mcs.net (Alex Nash)
Cc:        jb@cimlogic.com.au, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/lib/libc_r/uthread uthread_gc.c Makefile.inc uthread_init.c uthread_find_thread.c uthread_kern.c uthread_cre
Message-ID:  <199810012157.HAA10815@cimlogic.com.au>
In-Reply-To: <19981001092101.B7057@mcs.net> from Alex Nash at "Oct 1, 98 09:21:01 am"

next in thread | previous in thread | raw e-mail | index | archive | help
Alex Nash wrote:
> I wish this predictable behavior were true.  The spinlock code allows
> recursive locking by the same thread (libc_r/uthread/uthread_spinlock.c):
[...]
>                 /* Check if already locked by the running thread: */
>                 if (lck->lock_owner == (long) _thread_run)
>                         return;

This is redundent code. I'll remove it. I often use the debug version to
discover if this recursion exists.

-- 
John Birrell - jb@cimlogic.com.au; jb@freebsd.org http://www.cimlogic.com.au/
CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137



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