Protect contents from multiple threads with good old fashioned locking