On 21/03/17 21:07, Nicolai Hähnle wrote:
Thanks, but this is now not thread-safe. I'm not sure how much we should care about that, but anyway, as I see it there are three options: 1) Add some kind of locking. 2) Make the caller provide a struct for the state (similar to rand_r). 3) Ignore the issue and add a fat warning comment about it. Personally, I'd say (2) is the most robust option.
No problem, I almost did that but settled on this since it wasn't a problem with the current use. Will fix.
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev