pisa icon indicating copy to clipboard operation
pisa copied to clipboard

Locks for Param, ParamSet, & ParamSelector (used by Stage, Pipeline, DistributionMaker)

Open jllanfranchi opened this issue 8 years ago • 1 comments

  • registering parent sets one's lock to be parent's lock object
  • disconnecting parent grabs new lock
  • @synchronized decorator so we don't have to copy-paste and add lots of explicit mutex code
    • Shockingly, others have had the same idea; see e.g. https://github.com/GrahamDumpleton/wrapt/blob/develop/blog/07-the-missing-synchronized-decorator.md and http://stackoverflow.com/questions/29402606/possible-to-create-a-synchronized-decorator-thats-aware-of-a-methods-object

jllanfranchi avatar Nov 03 '16 16:11 jllanfranchi

@synchronized looks like a cool thing, but we've been doing well without, so maybe we don't need it..

LeanderFischer avatar May 03 '24 08:05 LeanderFischer