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
This commit is contained in:
parent
731e8b3886
commit
35a94bdca8
4 changed files with 32 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue