api: no more sync'ed Viewport methods

- remove synchronized viewport methods: viewport MUST only be changed on main-thread
- when calling Map.setPosition() from another thread the position will be applied
  on the next main-loop iteration
This commit is contained in:
Hannes Janetzek
2014-10-24 22:20:11 +02:00
parent 381907526e
commit 8626aa2f53
10 changed files with 328 additions and 165 deletions

View File

@@ -0,0 +1,16 @@
package org.oscim.utils;
public class ThreadUtils {
public static void assertMainThread() {
}
public static boolean isMainThread() {
return true;
}
public static void init() {
}
}