Using threading to use socket while using pymc

Hello,
I trying to use pymc3 with socket at the same time.
Therefore, I use threading to receive data from outside in real time.

Sometimes, I receive data from outside even when pymc3 updates something using those data.

My question is, is there some possibilities of causing error?

It seems like I am accessing the same data at the same time.
updating data list with socket while pymc use that data list to conduct bayesian update.

Thank you for reading this.