From 76145eca17724f86e6a16e20b4b6e7ca5d39da34 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 15 Oct 2011 07:24:02 +0200 Subject: NEWT/EDTUtil: Allow get/set poll period, defaults to defaultEDTPollPeriod --- src/newt/classes/com/jogamp/newt/util/EDTUtil.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/newt/classes/com') 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,8 +49,18 @@ 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 reset()
* after invokeStop(..) in case another start() or invoke(..) -- cgit v1.2.3