mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8266369: (se) Add wepoll based Selector
Reviewed-by: chegar, michaelm, vtewari, dfuchs, bpb
This commit is contained in:
parent
ff77ca8bd4
commit
be4f25b0c8
23 changed files with 3234 additions and 102 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2021, 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
|
||||
|
@ -679,6 +679,10 @@ public class Net {
|
|||
*/
|
||||
static native int sendOOB(FileDescriptor fd, byte data) throws IOException;
|
||||
|
||||
/**
|
||||
* Read and discard urgent data (MSG_OOB) on the socket.
|
||||
*/
|
||||
static native boolean discardOOB(FileDescriptor fd) throws IOException;
|
||||
|
||||
// -- Multicast support --
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2021, 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
|
||||
|
@ -25,6 +25,7 @@
|
|||
|
||||
package sun.nio.ch;
|
||||
|
||||
import java.io.FileDescriptor;
|
||||
import java.lang.invoke.ConstantBootstraps;
|
||||
import java.lang.invoke.MethodHandles;
|
||||
import java.lang.invoke.VarHandle;
|
||||
|
@ -74,6 +75,10 @@ public final class SelectionKeyImpl
|
|||
throw new CancelledKeyException();
|
||||
}
|
||||
|
||||
FileDescriptor getFD() {
|
||||
return channel.getFD();
|
||||
}
|
||||
|
||||
int getFDVal() {
|
||||
return channel.getFDVal();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue