cvs commit: src/lib/libthr/thread thr_spinlock.c

Alfred Perlstein alfred at freebsd.org
Sat Apr 24 08:19:40 PDT 2004


* Mike Makonnen <mtm at FreeBSD.org> [040424 02:38] wrote:
> mtm         2004/04/24 02:38:42 PDT
> 
>   FreeBSD src repository
> 
>   Modified files:
>     lib/libthr/thread    thr_spinlock.c 
>   Log:
>   Unconditionaly initialize any spin lock passed to pthread_spin_init(). While
>   makeing sure the spinlock isn't already in use might be a nice feature to
>   have in theory, it's hard to implement in practice since the passed in
>   pointer may not be NULL, but still be an invalid value (i.e. 1..2..3.. etc).

Good call.  Forcing it to be NULL and it might as already be
initialized. :)   (*looks at our kernel API and grumbles*)

>   
>   Revision  Changes    Path
>   1.10      +0 -4      src/lib/libthr/thread/thr_spinlock.c

-- 
- Alfred Perlstein
- Research Engineering Development Inc.
- email: bright at mu.org cell: 408-480-4684


More information about the cvs-all mailing list