swiftlang / swift-corelibs-libdispatch

The libdispatch Project, (a.k.a. Grand Central Dispatch), for concurrency on multicore hardware
swift.org
Apache License 2.0
2.47k stars 460 forks source link

Convert deprecated functions to use modern atomic variable handling #806

Open AreaZR opened 10 months ago

AreaZR commented 10 months ago

Replaced deprecated atomic functions with the recommended C11 equivalents.

AreaZR commented 10 months ago

@compnerd Thoughts on this?

compnerd commented 10 months ago

I don't see a good reason for any of the changes in src/allocator.c. Switching the Windows path ... I might want to think a bit more on, but I'm not sure that we should change the non-Windows path.

AreaZR commented 10 months ago

@compnerd I just unified the paths so we don't have to worry anymore