Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/librumpuser Wrap pthread_create(). Shouldn't really hav...
details: https://anonhg.NetBSD.org/src/rev/a74d8f981e60
branches: trunk
changeset: 796855:a74d8f981e60
user: pooka <pooka%NetBSD.org@localhost>
date: Sun Jun 22 20:17:23 2014 +0000
description:
Wrap pthread_create(). Shouldn't really have a functional effect,
apart from testing that rumpuser_thread_create() can actually survive
an unschedule/schedule cycle (which may or may not be necessary with
other hypercall implementations).
diffstat:
lib/librumpuser/rumpuser_pth.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b54a4d311a50 -r a74d8f981e60 lib/librumpuser/rumpuser_pth.c
--- a/lib/librumpuser/rumpuser_pth.c Sun Jun 22 20:09:19 2014 +0000
+++ b/lib/librumpuser/rumpuser_pth.c Sun Jun 22 20:17:23 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpuser_pth.c,v 1.40 2014/04/02 17:09:23 justin Exp $ */
+/* $NetBSD: rumpuser_pth.c,v 1.41 2014/06/22 20:17:23 pooka Exp $ */
/*
* Copyright (c) 2007-2010 Antti Kantee. All Rights Reserved.
@@ -28,7 +28,7 @@
#include "rumpuser_port.h"
#if !defined(lint)
-__RCSID("$NetBSD: rumpuser_pth.c,v 1.40 2014/04/02 17:09:23 justin Exp $");
+__RCSID("$NetBSD: rumpuser_pth.c,v 1.41 2014/06/22 20:17:23 pooka Exp $");
#endif /* !lint */
#include <sys/queue.h>
@@ -87,7 +87,7 @@
for (i = 0; i < 10; i++) {
const struct timespec ts = {0, 10*1000*1000};
- rv = pthread_create(ptidp, &pattr, f, arg);
+ KLOCK_WRAP(rv = pthread_create(ptidp, &pattr, f, arg));
if (rv != EAGAIN)
break;
nanosleep(&ts, NULL);
Home |
Main Index |
Thread Index |
Old Index