Class WApplication.UpdateLock

java.lang.Object
eu.webtoolkit.jwt.WApplication.UpdateLock
All Implemented Interfaces:
AutoCloseable
Enclosing class:
WApplication

public static class WApplication.UpdateLock extends Object implements AutoCloseable
A synchronization lock for manipulating and updating the application and its widgets outside of the event loop.

You need to take this lock only when you want to manipulate widgets outside of the event loop. LabelOption::Inside the event loop, this lock is already held by the library itself.

See Also:
  • Method Details

    • release

      public void release()
      Releases the lock.
    • close

      public void close()
      Releases the lock.

      Calls release()

      Implemented in order to support the AutoCloseable interface.

      Specified by:
      close in interface AutoCloseable