ensure thread-safety
ensure thread-safety

We need to support concurrent calls to Save() from
different threads. We do so by ensuring that
all access to shared data structures is done in critical sections.

dontjee/hyde