This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Thread.sleep() and System.nanoTime() fixes


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]