scalalang2 / golang-fifo

Modern efficient cache design with simple FIFO queue only in Golang
MIT License
142 stars 7 forks source link

hotfix: fix a race condition with RWMutex #23

Closed scalalang2 closed 10 months ago

scalalang2 commented 10 months ago

Motivation

This fixes a race condiiton issue using RWMutex with map.

I thought that the condition occurred due to the pointer to the map element being non-addressable.

However, further investigation is needed to determine the root cause.

Related Issues

resolve #21

richardartoul commented 10 months ago

Thanks for the quick response!

scalalang2 commented 10 months ago

I created a hotfix tag v0.1.5 which includes this.