* gnu/java/nio/natSelectorImplPosix.cc
(implSelect): A timeout of 0 means an infinite timeout. From-SVN: r74259
This commit is contained in:
parent
da63064ac8
commit
148c8e7b51
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2003-12-03 Mohan Embar <gnustuff@thisiscool.com>
|
||||
|
||||
* gnu/java/nio/natSelectorImplPosix.cc
|
||||
(implSelect): A timeout of 0 means an infinite
|
||||
timeout.
|
||||
|
||||
2003-12-02 Fernando Nasser <fnasser@redhat.com>
|
||||
|
||||
* gnu/java/awt/peer/gtk/GtkListPeer.java (handleEvent): Fix generation
|
||||
|
|
|
@ -57,8 +57,10 @@ gnu::java::nio::SelectorImpl::implSelect (jintArray read, jintArray write,
|
|||
real_time_data.tv_usec = timeout;
|
||||
|
||||
// If not legal timeout value is given, use NULL.
|
||||
// This means an infinite timeout.
|
||||
if (timeout >= 0)
|
||||
// This means an infinite timeout. The specification
|
||||
// also says that a zero timeout should be treated
|
||||
// as infinite.
|
||||
if (timeout > 0)
|
||||
{
|
||||
time_data = &real_time_data;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue