Skip to content
Snippets Groups Projects
Commit 79a36958 authored by tromey's avatar tromey
Browse files

* include/posix.h (_Jv_platform_usleep): Wrap in ifdef

	JV_HASH_SYNCHRONIZATION.
	* include/win32.h (_Jv_platform_usleep): Wrap in ifdef
	JV_HASH_SYNCHRONIZATION.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60998 138bc75d-0d04-0410-961f-82ee72b054a4
parent 2a72e4e9
No related merge requests found
2003-01-07 Tom Tromey <tromey@redhat.com>
* include/posix.h (_Jv_platform_usleep): Wrap in ifdef
JV_HASH_SYNCHRONIZATION.
* include/win32.h (_Jv_platform_usleep): Wrap in ifdef
JV_HASH_SYNCHRONIZATION.
2003-01-07 Michael Koch <konqueror@gmx.de> 2003-01-07 Michael Koch <konqueror@gmx.de>
* java/net/DatagramSocket.java: * java/net/DatagramSocket.java:
......
// posix.h -- Helper functions for POSIX-flavored OSs. // posix.h -- Helper functions for POSIX-flavored OSs.
/* Copyright (C) 2000, 2002 Free Software Foundation /* Copyright (C) 2000, 2002, 2003 Free Software Foundation
This file is part of libgcj. This file is part of libgcj.
...@@ -60,11 +60,13 @@ _Jv_platform_close_on_exec (jint fd) ...@@ -60,11 +60,13 @@ _Jv_platform_close_on_exec (jint fd)
::fcntl (fd, F_SETFD, FD_CLOEXEC); ::fcntl (fd, F_SETFD, FD_CLOEXEC);
} }
#ifdef JV_HASH_SYNCHRONIZATION
inline void inline void
_Jv_platform_usleep (unsigned long usecs) _Jv_platform_usleep (unsigned long usecs)
{ {
usleep (usecs); usleep (usecs);
} }
#endif /* JV_HASH_SYNCHRONIZATION */
#ifndef DISABLE_JAVA_NET #ifndef DISABLE_JAVA_NET
......
...@@ -48,6 +48,7 @@ _Jv_platform_close_on_exec (jint) ...@@ -48,6 +48,7 @@ _Jv_platform_close_on_exec (jint)
// Ignore. // Ignore.
} }
#ifdef JV_HASH_SYNCHRONIZATION
/* Suspends the execution of the current thread for the specified /* Suspends the execution of the current thread for the specified
number of microseconds. Tries to emulate the behaviour of usleep() number of microseconds. Tries to emulate the behaviour of usleep()
on UNIX and provides a granularity of 1 millisecond. */ on UNIX and provides a granularity of 1 millisecond. */
...@@ -60,6 +61,7 @@ _Jv_platform_usleep (unsigned long usecs) ...@@ -60,6 +61,7 @@ _Jv_platform_usleep (unsigned long usecs)
Sleep (millis); Sleep (millis);
} }
} }
#endif /* JV_HASH_SYNCHRONIZATION */
#ifndef DISABLE_JAVA_NET #ifndef DISABLE_JAVA_NET
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment