< prev index next >
src/java.base/solaris/classes/sun/nio/ch/SolarisEventPort.java
Print this page
rev 49271 : [mq]: selector-cleanup
*** 1,7 ****
/*
! * Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 162,172 ****
// wait for I/O completion event
// A error here is fatal (thread will not be replaced)
replaceMe = false;
try {
! port_get(port, address);
} catch (IOException x) {
x.printStackTrace();
return;
}
--- 162,175 ----
// wait for I/O completion event
// A error here is fatal (thread will not be replaced)
replaceMe = false;
try {
! int n;
! do {
! n = port_get(port, address);
! } while (n == IOStatus.INTERRUPTED);
} catch (IOException x) {
x.printStackTrace();
return;
}
*** 238,248 ****
throws IOException;
/**
* Retrieves a single event from a port
*/
! static native void port_get(int port, long pe) throws IOException;
/**
* Retrieves at most {@code max} events from a port.
*/
static native int port_getn(int port, long address, int max, long timeout)
--- 241,251 ----
throws IOException;
/**
* Retrieves a single event from a port
*/
! static native int port_get(int port, long address) throws IOException;
/**
* Retrieves at most {@code max} events from a port.
*/
static native int port_getn(int port, long address, int max, long timeout)
< prev index next >