MCPcopy Create free account
hub / github.com/ReadyTalk/avian / Java_java_nio_channels_SocketSelector_natWakeup

Function Java_java_nio_channels_SocketSelector_natWakeup

classpath/java-nio.cpp:892–905  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

890}
891
892extern "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
907extern "C" JNIEXPORT void JNICALL
908 Java_java_nio_channels_SocketSelector_natClose(JNIEnv*, jclass, jlong state)

Callers

nothing calls this directly

Calls 4

throwIOExceptionFunction · 0.85
connectedMethod · 0.80
writerMethod · 0.80
doWriteFunction · 0.70

Tested by

no test coverage detected