From 491e3a8354e211e12d542767803888faa2653ff1 Mon Sep 17 00:00:00 2001 From: David Leonard Date: Mon, 1 Feb 1999 08:23:47 +0000 Subject: don't compute resource usage. this speeds things up a lot --- lib/libc_r/uthread/uthread_create.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/libc_r/uthread/uthread_create.c') diff --git a/lib/libc_r/uthread/uthread_create.c b/lib/libc_r/uthread/uthread_create.c index 1ed287d2b1b..eef5dab9646 100644 --- a/lib/libc_r/uthread/uthread_create.c +++ b/lib/libc_r/uthread/uthread_create.c @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $OpenBSD: uthread_create.c,v 1.6 1999/01/17 23:57:27 d Exp $ + * $OpenBSD: uthread_create.c,v 1.7 1999/02/01 08:23:46 d Exp $ */ #include #include @@ -89,8 +89,10 @@ pthread_create(pthread_t * thread, const pthread_attr_t * attr, new_thread->stack = stack; new_thread->start_routine = start_routine; new_thread->arg = arg; +#ifdef _THREAD_RUSAGE timerclear(&new_thread->ru_utime); timerclear(&new_thread->ru_stime); +#endif _SPINUNLOCK(&new_thread->lock); new_thread->cancelstate = PTHREAD_CANCEL_ENABLE; -- cgit v1.2.3