diff options
author | Tom Tromey <tromey@redhat.com> | 2002-12-31 17:43:47 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2002-12-31 17:43:47 +0000 |
commit | 35a94bdca88f0afa5f6922afbf8d17f5ff908466 (patch) | |
tree | 7796256b482af303f3dd8700910237614d8d6601 /libjava/include/posix.h | |
parent | 731e8b3886f14b9abc61d0e0745cc4c02bc5e481 (diff) | |
download | gcc-35a94bdca88f0afa5f6922afbf8d17f5ff908466.zip gcc-35a94bdca88f0afa5f6922afbf8d17f5ff908466.tar.gz gcc-35a94bdca88f0afa5f6922afbf8d17f5ff908466.tar.bz2 |
re PR libgcj/8997 (spin() calls Thread.sleep)
2002-12-31 Tom Tromey <tromey@redhat.com>
Ranjit Mathew <rmathew@hotmail.com>
Fix for PR libgcj/8997:
* java/lang/natObject.cc (spin): Use _Jv_platform_usleep.
Include platform.h.
* include/posix.h (_Jv_platform_usleep): New function.
* include/win32.h (_Jv_platform_usleep): New function.
Co-Authored-By: Ranjit Mathew <rmathew@hotmail.com>
From-SVN: r60700
Diffstat (limited to 'libjava/include/posix.h')
-rw-r--r-- | libjava/include/posix.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libjava/include/posix.h b/libjava/include/posix.h index cdcdb5d..859db6e 100644 --- a/libjava/include/posix.h +++ b/libjava/include/posix.h @@ -60,6 +60,12 @@ _Jv_platform_close_on_exec (jint fd) ::fcntl (fd, F_SETFD, FD_CLOEXEC); } +inline void +_Jv_platform_usleep (unsigned long usecs) +{ + usleep (usecs); +} + #ifndef DISABLE_JAVA_NET #ifndef HAVE_SOCKLEN_T |