Add support for @_noLocks
and @_noAllocation
Swift attributes
#63
Labels
bug
Something isn't working
@_noLocks
and @_noAllocation
Swift attributes
#63
Description
For real time programming the
@_noLocks
and@_noAllocation
Swift attributes provide programmers with a convenient way of ensuring the safety of their code in a real time environment. Currently, when using these attributes with Swift Atomics, the following error message is generated.Steps to Reproduce
Expected behavior
The
@_noLocks
and@_noAllocation
attributes generate no errors indicating code is free from locks and allocations and may be suitable for execution within a real time environment.Actual behavior
The
@_noLocks
and@_noAllocation
attributes generate errors indicating the code may contain locks or allocations and may be unsafe for execution within a real time environment.Environment
Swift 5.8 Dev Snapshot 2022-12-29
The text was updated successfully, but these errors were encountered: