]> git.proxmox.com Git - wasi-libc.git/commit
Support threads in the new crt1-command.c ctor check. (#339)
authorDan Gohman <dev@sunfishcode.online>
Tue, 8 Nov 2022 21:37:44 +0000 (13:37 -0800)
committerGitHub <noreply@github.com>
Tue, 8 Nov 2022 21:37:44 +0000 (13:37 -0800)
commitb99173e17765fdbbfa3f75e2389fc2e994a04ef2
tree48755f1be262fcf626e83da1b740595537fc8ff9
parenta7af7c064ba2a44776ccd3c629ecae31a18037d8
Support threads in the new crt1-command.c ctor check. (#339)

Use an atomic compare-and-swap for checking whether constructors have
been run, when threads are enabled.
libc-bottom-half/crt/crt1-command.c