decimal icon indicating copy to clipboard operation
decimal copied to clipboard

Why "DivisionPrecision" is a global variable?

Open csonezp opened this issue 2 years ago • 1 comments

In my opinion, in the case of high concurrency, if i modify it, it may cause thread safety problems. Why not design it as a local variable?

csonezp avatar Jan 10 '23 12:01 csonezp

I would like to see a way to use the decimal library in a more concurrent-safe way, as well. I'm not using it with concurrency yet, but was hoping to. Forgive my ignorance, but is there a way to isolate all potentially changing global variables, so that each thread gets it's own copy?

langurs avatar Jun 21 '24 13:06 langurs