| 890 | } |
| 891 | |
| 892 | extern "C" JNIEXPORT void JNICALL |
| 893 | Java_java_nio_channels_SocketSelector_natWakeup(JNIEnv* e, |
| 894 | jclass, |
| 895 | jlong state) |
| 896 | { |
| 897 | SelectorState* s = reinterpret_cast<SelectorState*>(state); |
| 898 | if (s->control.connected()) { |
| 899 | const char c = 1; |
| 900 | int r = ::doWrite(s->control.writer(), &c, 1); |
| 901 | if (r != 1) { |
| 902 | throwIOException(e); |
| 903 | } |
| 904 | } |
| 905 | } |
| 906 | |
| 907 | extern "C" JNIEXPORT void JNICALL |
| 908 | Java_java_nio_channels_SocketSelector_natClose(JNIEnv*, jclass, jlong state) |
nothing calls this directly
no test coverage detected