Module Name:    src
Committed By:   pooka
Date:           Sun Jun 22 20:17:23 UTC 2014

Modified Files:
        src/lib/librumpuser: rumpuser_pth.c

Log Message:
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).


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/lib/librumpuser/rumpuser_pth.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/librumpuser/rumpuser_pth.c
diff -u src/lib/librumpuser/rumpuser_pth.c:1.40 src/lib/librumpuser/rumpuser_pth.c:1.41
--- src/lib/librumpuser/rumpuser_pth.c:1.40	Wed Apr  2 17:09:23 2014
+++ src/lib/librumpuser/rumpuser_pth.c	Sun Jun 22 20:17:23 2014
@@ -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 @@ rumpuser_thread_create(void *(*f)(void *
 	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);

Reply via email to