Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/thread-stub Add CHECK_NOT_THREADED() in __libc_mute...
details: https://anonhg.NetBSD.org/src/rev/daff4e29622f
branches: trunk
changeset: 348644:daff4e29622f
user: kamil <kamil%NetBSD.org@localhost>
date: Mon Oct 31 18:10:11 2016 +0000
description:
Add CHECK_NOT_THREADED() in __libc_mutexattr_settype_stub()
This makes this function consistent with __libc_mutex_catchall_stub()
and others in the same group.
Approved by <christos>.
diffstat:
lib/libc/thread-stub/thread-stub.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 2de547dd5dae -r daff4e29622f lib/libc/thread-stub/thread-stub.c
--- a/lib/libc/thread-stub/thread-stub.c Mon Oct 31 17:46:32 2016 +0000
+++ b/lib/libc/thread-stub/thread-stub.c Mon Oct 31 18:10:11 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: thread-stub.c,v 1.27 2013/05/28 17:29:41 christos Exp $ */
+/* $NetBSD: thread-stub.c,v 1.28 2016/10/31 18:10:11 kamil Exp $ */
/*-
* Copyright (c) 2003, 2009 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: thread-stub.c,v 1.27 2013/05/28 17:29:41 christos Exp $");
+__RCSID("$NetBSD: thread-stub.c,v 1.28 2016/10/31 18:10:11 kamil Exp $");
#endif /* LIBC_SCCS and not lint */
/*
@@ -146,6 +146,8 @@
/* LINTED deliberate lack of effect */
(void)type;
+ CHECK_NOT_THREADED();
+
return (0);
}
Home |
Main Index |
Thread Index |
Old Index