In #291, I added Arc-oriented Mutex locks; however, when writing the locking functions for this code, there is a lot of code that ends up being duplicated. This PR adds a macro that reduces the amount of code written (and may make it easier to add more Arc-oriented methods in the future.
I'm not particularly attached to any kind of macro syntax.
In #291, I added
Arc
-oriented Mutex locks; however, when writing the locking functions for this code, there is a lot of code that ends up being duplicated. This PR adds a macro that reduces the amount of code written (and may make it easier to add moreArc
-oriented methods in the future.I'm not particularly attached to any kind of macro syntax.