diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2021-02-14 18:34:18 +0330 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-15 17:32:56 +0100 |
commit | bb777459a0eedb38b85d41da96a00a498895a64f (patch) | |
tree | fe8229be3ca99afabfc8356c85eb6afe1cbe1edb /Ports/cmake/patches/0014-cmcurl-include-unistd.patch | |
parent | 8e074f8665fc813216731f1bcf3863b27f988b95 (diff) | |
download | serenity-bb777459a0eedb38b85d41da96a00a498895a64f.zip |
LibC+LibPthread: Implement pthread_atfork()
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) :^)
Diffstat (limited to 'Ports/cmake/patches/0014-cmcurl-include-unistd.patch')
0 files changed, 0 insertions, 0 deletions