Daniel Eischen
82358b1b5a
Remove #include of spinlock.h from libc_private.h. Declare spinlocks as
...
struct _spinlock. Keep the typedef in for now; another set of changes
may come around to clean up consumers of spinlocks.
Requested by: bde
2003-11-05 18:17:30 +00:00
Jeff Roberson
cc3521d660
- Define a _spinunlock() function so that threading implementations may do
...
more complicated things than just setting the lock to 0.
- Implement stubs for this function in libc and the two threading libraries
that are currently in the tree.
2003-03-26 04:02:24 +00:00
David E. O'Brien
c05ac53b8b
Remove __P() usage.
2002-03-21 22:49:10 +00:00
Peter Wemm
7f3dea244c
$Id$ -> $FreeBSD$
1999-08-28 00:22:10 +00:00
John Birrell
f374bfcd3c
Implement compile time debug support for spinlocks.
...
Simplify the atomic lock prototype, removing the lock value.
Delete the unlock prototypes that are not required.
1998-06-09 08:28:49 +00:00
John Birrell
f1daac6f22
In a threaded library, expect the lock field to be declared volatile,
...
so provide function prototypes that respect that, avoiding a gcc
warning that `volatile' is being thrown away.
1998-05-05 21:46:30 +00:00
John Birrell
0a31d34120
Add a private (to libc, libc_r and libpthread) header file containing
...
prototypes for the spinlock functions that will be used for thread locks.
libc will have stubs declared with weak symbols. libpthread and libc_r
will have functions that really do something.
1998-03-09 05:05:32 +00:00