title: Is that possible to create an atomic local variable without using a property?
body: <p>I am inside a method with a code like this</p>
  
  <pre><code>  __block NSMutableArray *myArray = [[NSMutableArray alloc] init];
  
    [anotherArray enumerateObjectsWithOptions:NSEnumerationConcurrent
                              usingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
  
       // do some calculation and generate an object
       [myArray addObject:anObject];
  
  
    }];
  </code></pre>
  
  <p>because the enumeration is concurrent, I have a crash when several threads try to add objects to myArray.</p>
  
  <p>I know about atomic properties but I wonder if there is a way of making myArray atomic and thread safe without using a property. I want to keep it local.</p>