Page MenuHomeFreeBSD

atomic: Add atomic_load/store_bool()
ClosedPublic

Authored by markj on Aug 8 2022, 6:11 PM.
Tags
None
Referenced Files
F105531962: D36078.id109078.diff
Tue, Dec 17, 8:38 AM
F105522166: D36078.diff
Tue, Dec 17, 5:46 AM
Unknown Object (File)
Mon, Dec 2, 1:25 AM
Unknown Object (File)
Sun, Nov 17, 6:23 PM
Unknown Object (File)
Nov 15 2024, 8:19 AM
Unknown Object (File)
Nov 8 2024, 3:03 PM
Unknown Object (File)
Nov 8 2024, 1:32 PM
Unknown Object (File)
Nov 8 2024, 11:37 AM
Subscribers

Details

Summary

For plain accesses, I can see no reason not to provide them. They will
be useful for jhb's re-import of if_wg.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 46795
Build 43684: arc lint + arc unit

Event Timeline

markj requested review of this revision.Aug 8 2022, 6:11 PM
sys/sys/atomic_common.h
42

Why #ifdef _KERNEL? Using _Bool, you can do it for userspace, I think. Also, this is a macro, so type is dormant unless the macro is actually used.

Drop _KERNEL guards, use _Bool instead.

This revision is now accepted and ready to land.Aug 8 2022, 9:29 PM
This revision was automatically updated to reflect the committed changes.