Class ThreadUtils
java.lang.Object
com.blackrook.gloop.openal.struct.ThreadUtils
Simple threading utility functions.
- Author:
- Matthew Tropiano
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ThreadUtils
public ThreadUtils()
-
-
Method Details
-
sleep
public static void sleep(long millis) CallsThread.sleep()but in an encapsulated try to avoid catching InterruptedException. Convenience method for making the current thread sleep when you don't care if it's interrupted or not and want to keep code neat.- Parameters:
millis- the amount of milliseconds to sleep.- See Also:
-
sleep
public static void sleep(long millis, int nanos) CallsThread.sleep()but in an encapsulated try to avoid catching InterruptedException. Convenience method for making the current thread sleep when you don't care if it's interrupted or not and want to keep code neat.- Parameters:
millis- the amount of milliseconds to sleep.nanos- the amount of additional nanoseconds to sleep.- See Also:
-