Implement rigorous locking in HiveWhiteBoard
- Hide data to-be-protected inside a
Syncedtemplate which guarantees locking prior to access, and which provides an explicit scope for the lock. - Replace _CALL macro with a
fwdfunction which forwards the argument to the currentPartition. Automatically obtain the relevent service from thePartition(including locking) and then invoke the callback. - Provide a generic
for_which calls the provided callback for eachPartition, after locking it.
Edited by Gerhard Raven