MutexedAA!(string[int]) aa; aa.setup(); // important! auto aa2 = mutexedAA!(string[int]); // no need to setup
{ MutexedAA!(string[int]) aa; assert(!aa.isReady); // internal mutex not instantiated, requires .setup() } { auto aa = mutexedAA!(string[int]); assert(aa.isReady); // mutex is in place already, no need to .setup() }
Convenience function to create and setup a MutexedAA instance in one go. MutexedAA.setup need as such not be called.