[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Internal libc lock interface
From: |
Roland McGrath |
Subject: |
Re: Internal libc lock interface |
Date: |
Thu, 21 Jun 2001 08:51:17 -0400 (EDT) |
> I also found a stub in sysdes/generic for machine-lock.h. It defines
> the atomic __spin_lock operations and there are non stub implementations
> for severa arch's. It contains very few definitions. So I think I'll
> add more definitions and use __spin_lock's throughout pthreads.
You should probably use the linuxthreads/sysdeps/CPU/pspinlock code
instead. As I said before, in any instance where you can, you should feel
free (and encouraged) to snarf the sources from linuxthreads when the files
are copyright FSF (these ones all are) and when the implementations are good.