com.kuka.common
Class WindowsSleepBugSolver

java.lang.Object
  extended by com.kuka.common.WindowsSleepBugSolver

public final class WindowsSleepBugSolver
extends Object

Helper class to solve a bug under windows which causes inaccurate Thread.sleep behavior.

Check out this for more information on the bug: http://bugs.sun.com/view_bug.do?bug_id=6435126

We want the RoboticsAPI to be as accurate as possible, so we have this bug solver inside the API.

This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

Method Summary
static void solve()
          Solves a bug under windows which causes an inaccurate sleep.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

solve

public static void solve()
Solves a bug under windows which causes an inaccurate sleep.

This method starts a deamon thread which will sleep all the time. It will only start the thread once and only if the os.name property contains the string 'Windows'.



Copyright © 2019. All rights reserved.