summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/_spinlock_stub.c
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-06-09 08:32:23 +0000
committerjb <jb@FreeBSD.org>1998-06-09 08:32:23 +0000
commit05385aab221ae2f336cb1a11fca17e94d1f03a79 (patch)
treeeffb2fe7cfad27dfaf5fbf4d0cc83601a245a4c7 /lib/libc/gen/_spinlock_stub.c
parent439aa43648c4d70ee5a7a2ad98e9dfa7ec875ead (diff)
downloadFreeBSD-src-05385aab221ae2f336cb1a11fca17e94d1f03a79.zip
FreeBSD-src-05385aab221ae2f336cb1a11fca17e94d1f03a79.tar.gz
Implement compile time debug mode for thread locks.
Diffstat (limited to 'lib/libc/gen/_spinlock_stub.c')
-rw-r--r--lib/libc/gen/_spinlock_stub.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/gen/_spinlock_stub.c b/lib/libc/gen/_spinlock_stub.c
index 5314d85..a189eef 100644
--- a/lib/libc/gen/_spinlock_stub.c
+++ b/lib/libc/gen/_spinlock_stub.c
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: _spinlock_stub.c,v 1.1 1998/03/09 06:46:21 jb Exp $
+ * $Id: _spinlock_stub.c,v 1.2 1998/04/29 09:02:16 jb Exp $
*
*/
@@ -44,21 +44,21 @@
* with libpthread.
*/
#pragma weak _spinlock=_spinlock_stub
-#pragma weak _atomic_unlock=_atomic_unlock_stub
+#pragma weak _spinlock_debug=_spinlock_debug_stub
/*
* This function is a stub for the spinlock function in libpthread.
*/
void
-_spinlock_stub(long *lck)
+_spinlock_stub(spinlock_t *lck)
{
}
/*
- * This function is a stub for the _atomic_unlock function in libpthread.
+ * This function is a stub for the debug spinlock function in libpthread.
*/
void
-_atomic_unlock_stub(long *lck)
+_spinlock_debug_stub(spinlock_t *lck, char *fname, int lineno)
{
}
#endif
OpenPOWER on IntegriCloud