diff options
author | David Leonard <d@cvs.openbsd.org> | 1999-02-01 08:23:47 +0000 |
---|---|---|
committer | David Leonard <d@cvs.openbsd.org> | 1999-02-01 08:23:47 +0000 |
commit | 491e3a8354e211e12d542767803888faa2653ff1 (patch) | |
tree | 76dd023e1a2263963a10828b26d9f20cececcb74 /lib/libc_r/uthread/uthread_create.c | |
parent | eb79b0d60f1cc3d66aa82eed50f41631bc76e16d (diff) |
don't compute resource usage. this speeds things up a lot
Diffstat (limited to 'lib/libc_r/uthread/uthread_create.c')
-rw-r--r-- | lib/libc_r/uthread/uthread_create.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 <errno.h> #include <stdlib.h> @@ -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; |