Problem Overview
This function increases the size of the actual elements in the queue by allocating from the heap and then updating queue size. This should be done in an atomic manner. Here we add a lock to this function. This should not impact performance, since this operation is rare.
Testing Done
Running same tests, no new tests are added.
This function increases the size of the actual elements in the queue by allocating from the heap and then updating queue size. This should be done in an atomic manner. Here we add a lock to this function. This should not impact performance, since this operation is rare.
Running same tests, no new tests are added.