soniah / evaler

Implements a simple floating point arithmetic expression evaluator in Go (golang).
BSD 3-Clause "New" or "Revised" License
51 stars 17 forks source link

goroutine-safe? #16

Open sailorfeng opened 5 years ago

sailorfeng commented 5 years ago

It seems this lib is not goroutine-safe for there is a variable symbolTable in package.

JJBordy commented 1 year ago

@sailorfeng any way of solving the concurrency issue?

ipartner commented 1 year ago

@sailorfeng any way of solving the concurrency issue?

in short the map must be changed to an atomic one or add a couple of mutex here and there