aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/classes/com
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-10-15 07:24:02 +0200
committerSven Gothel <[email protected]>2011-10-15 07:24:02 +0200
commit76145eca17724f86e6a16e20b4b6e7ca5d39da34 (patch)
tree58224794487f3d1c52e4941ac2dc6c1f56cdab5d /src/newt/classes/com
parentea3486fd2a98ca00c62b9f0b7e3ef8251387f971 (diff)
NEWT/EDTUtil: Allow get/set poll period, defaults to defaultEDTPollPeriod
Diffstat (limited to 'src/newt/classes/com')
-rw-r--r--src/newt/classes/com/jogamp/newt/util/EDTUtil.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/newt/classes/com/jogamp/newt/util/EDTUtil.java b/src/newt/classes/com/jogamp/newt/util/EDTUtil.java
index d1a11a788..4493e2781 100644
--- a/src/newt/classes/com/jogamp/newt/util/EDTUtil.java
+++ b/src/newt/classes/com/jogamp/newt/util/EDTUtil.java
@@ -49,9 +49,19 @@ package com.jogamp.newt.util;
*/
public interface EDTUtil {
- public static final long defaultEDTPollGranularity = 10; // 10ms, 1/100s
+ public static final long defaultEDTPollPeriod = 10; // 10ms, 1/100s
/**
+ * @return poll period in milliseconds
+ */
+ public long getPollPeriod();
+
+ /**
+ * @param ms poll period in milliseconds
+ */
+ public void setPollPeriod(long ms);
+
+ /**
* Create a new EDT. One should invoke <code>reset()</code><br>
* after <code>invokeStop(..)</code> in case another <code>start()</code> or <code>invoke(..)</code>
* is expected.