safety for the initialization of data when the constructor is not finished and the reading thread is looking for the container to write to