ndw/xmlcalabash1 — Issue #15: synchronization of runtime load?
Author: alexmilowski
Created: 2011-10-20 22:02:25+00:00
State: open

I am trying to load the same pipeline via the same runtime simultaneously and it looks like you need to wrap the runtime in a synchronization block.

This will fail in two different threads:

runtime.load(...same uri...)

This will succeed:

synchronized (runtime) {
runtime.load(...same uri...)
}

It seems like overkill to do it this way but the interior of the XProcRuntime instance would need to guarantee thread safety.