A staged commit prepares multiple layers to be committed.
Add all relevant layer updates via .add(layer). Add layers for which you want interaction feedback via .requestInteraction(layer). Then, commit via client.apply(stagedCommit).
A staged commit can be reused for subsequent commits. Remember to call .reset() to clear the internal data structures.
As long as you keep the staged commits separate, this method is thread-safe. So you can have two threads calling .commit(A) and .commit(B) simultaneously without any locking mechanism.
Definition at line 31 of file Client.h.