logoalt Hacker News

Borg3yesterday at 8:59 PM1 replyview on HN

Holy moly.. Thread safety.. Good point and Bad point. I myself use threads sparsly, so I dont intermix calls between threads..


Replies

1718627440yesterday at 11:55 PM

It also has different behaviour in a single thread. This can be what you want though, but I would prefer it to pass that context as a parameter instead of having it in a hidden static variable.