MCPcopy Create free account
hub / github.com/e2wugui/zeze / wakeup

Method wakeup

ZezeJava/ZezeJava/src/main/java/Zeze/Net/Selector.java:190–202  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

188 }
189
190 public void wakeup() {
191 int selectTimeout = selectors.getSelectTimeout();
192 if (selectTimeout <= 0 && Thread.currentThread() != this && wakeupNotified.compareAndSet(0, 1)) {
193// wakeupCount1.incrementAndGet();
194// long t = System.nanoTime();
195 if (selectTimeout == 0)
196 selector.wakeup();
197 else
198 WakeupThread.postWakeup(selector);
199// wakeupTime.addAndGet(System.nanoTime() - t);
200 }// else
201// wakeupCount0.incrementAndGet();
202 }
203
204 @Override
205 public void run() {

Callers 11

DatagramSocketMethod · 0.45
TcpSocketMethod · 0.45
submitActionMethod · 0.45
pauseReceiveMethod · 0.45
resumeReceiveMethod · 0.45
realCloseMethod · 0.45
closeMethod · 0.45
registerMethod · 0.45
closeMethod · 0.45
runMethod · 0.45
postWakeupMethod · 0.45

Calls 2

postWakeupMethod · 0.95
getSelectTimeoutMethod · 0.80

Tested by

no test coverage detected