+ // Block loading until timeout occurs or database is taken into use
+ log.info("Blocking motor loading while starting up");
+ /*
+ while (!inUse && blockLoading.addAndGet(-100) > 0) {
+ try {
+ Thread.sleep(100);
+ } catch (InterruptedException e) {
+ }
+ }
+ */
+ log.info("Blocking ended, inUse=" + inUse + " blockLoading=" + blockLoading.get());
+