diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2000-01-18 11:35:25 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2000-01-18 11:35:25 +0000 |
| commit | 7e416d8e49614a0bb7507abbf21eb4c7da76062c (patch) | |
| tree | 305b1354798c262ea54be0a795792ec324038aea /lib/libpthread/thread/thr_init.c | |
| parent | 85dd55e47302ff43e41f568ed51380ad7042da99 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_init.c')
| -rw-r--r-- | lib/libpthread/thread/thr_init.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_init.c b/lib/libpthread/thread/thr_init.c index 051483f17af0..b6429bbe43a0 100644 --- a/lib/libpthread/thread/thr_init.c +++ b/lib/libpthread/thread/thr_init.c @@ -90,6 +90,7 @@ _thread_init(void) int i; size_t len; int mib[2]; + struct timeval tv; struct clockinfo clockinfo; struct sigaction act; @@ -223,6 +224,11 @@ _thread_init(void) TAILQ_INIT(&(_thread_initial->mutexq)); _thread_initial->priority_mutex_count = 0; + /* Initialize last active time to now: */ + gettimeofday(&tv, NULL); + _thread_initial->last_active.tv_sec = tv.tv_sec; + _thread_initial->last_active.tv_usec = tv.tv_usec; + /* Initialise the rest of the fields: */ _thread_initial->poll_data.nfds = 0; _thread_initial->poll_data.fds = NULL; |
