Remix.run Logo
NewJazz 3 days ago

You want libc to start a thread whenever it is loaded?

Someone 3 days ago | parent [-]

If it’s the only alternative to being broken: yes.

It could read and parse the file the first time a thread gets created, too.

A cheaper alternative is to check the modification time of the config file, and only reparse it in pthread_cancel when that changes. That doesn’t 10% fix the problem in theory, but would do it in practice.