Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-02-15 | LibC+LibPthread: Implement pthread_atfork() | AnotherTest | |
This required a bit of rearchitecture, as pthread_atfork() required a mutex, and duplicating a mutex impl for it was silly. As such, this patch moves some standalone bits of pthread into LibC and uses those to implement atfork(). It should be noted that for programs that don't use atfork(), this mechanism only costs two atomic loads (as opposed to the normal mutex lock+unlock) :^) |