Safeishly use non-reentrant libraries with POSIX threads

12 points by runxiyu


joed

Nice demo, but I hope I never have to use this.

typeof is a GNU extension. It could be avoided by using macros.

Not any more! It’s in C23.

catern

This is a good demo. I think a world where we were using linker namespaces much more would be a better world. Sadly most people and languages don’t bother to know about them, and instead just hack up their own solution, and this will probably never change. So I don’t think about them too much, since it will just make me annoyed.