This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Thread.sleep() and System.nanoTime() fixes
- From: Andreas Schwab <schwab at suse dot de>
- To: gkeating at apple dot com (Geoffrey Keating)
- Cc: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org, aph at redhat dot com, tromey at redhat dot com
- Date: Thu, 14 Sep 2006 10:58:45 +0200
- Subject: Re: Thread.sleep() and System.nanoTime() fixes
- References: <20060913184025.D0F2F44C29C8@geoffk5.apple.com>
gkeating@apple.com (Geoffrey Keating) writes:
> 2006-09-13 Geoffrey Keating <geoffk@apple.com>
>
> * posix.cc (_Jv_platform_nanotime): Return nanoseconds, not
> microseconds; use gettimeofday when available.
> * posix-threads.cc (_Jv_CondWait): Improve accuracy and range of
> timeout calculation.
> * testsuite/libjava.lang/Thread_Sleep_2.java: New.
> * testsuite/libjava.lang/Thread_Sleep_2.out: New.
../../../libjava/posix-threads.cc: In function 'int _Jv_CondWait(_Jv_ConditionVariable_t*, _Jv_Mutex_t*, jlong, jint)':
../../../libjava/posix-threads.cc:106: error: 'gettimeofday' was not declared in this scope
make[3]: *** [posix-threads.lo] Error 1
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."