I am unclear why it is needed. C++ 17 already has this in the std library. these should be used instead of making our own
Jason On Wed, Mar 20, 2019 at 4:17 PM Leif Hedstrom <[email protected]> wrote: > Don’t we have scoped mutexes already ? > > — Leif > > > On Mar 20, 2019, at 12:08, Walt Karas <[email protected]> > wrote: > > > > https://godbolt.org/z/6klEJn > > > > Useful for mutex-protected objects, where the mutex is only locked within > > code blocks. Could be used in this PR: > > > > https://github.com/apache/trafficserver/pull/5187 > >
