Doug Gregor
1efb994375
Enable strict memory safety in the Synchronization module
2025-02-26 14:28:28 -08:00
Doug Gregor
8378562e12
Adopt @unsafe throughout the standard library
...
Annotate all of the `Unsafe*` types and `unsafe` functions in the standard
library (including concurrency, synchronization, etc.) as `@unsafe`. Add a
few tests to ensure that we detect uses of these types in clients that
have disabled unsafe code.
2024-08-19 14:33:09 -07:00
Alejandro Alonso
24a46c422b
Merge pull request #74946 from Azoy/mutex-sending-inout
...
[stdlib] Adopt inout sending for Mutex
2024-07-17 10:56:57 -07:00
Alexander Cyon
c21b1e68fd
[stdlib] Fix typos
2024-07-06 13:09:57 +02:00
Alejandro Alonso
9cbf410220
Adopt inout sending for Mutex
2024-07-03 10:54:20 -07:00
Alejandro Alonso
cb3fc4b451
Adopt sending and movesAsLike
2024-06-04 09:49:21 -07:00
Alejandro Alonso
66ec7abd54
Underscore some things, add explicit internal
...
Fix some compile issues
2024-06-04 09:06:37 -07:00
Alejandro Alonso
9b389a3df5
Fix tests and toolchain build
2024-06-04 09:06:37 -07:00
Alejandro Alonso
e99268864c
Use Builtin.addressOfRawLayout
2024-06-04 09:06:37 -07:00
Alejandro Alonso
97072e5b79
Adopt transferring for Mutex init
2024-06-04 09:06:37 -07:00
Alejandro Alonso
89748d4229
Actually implement the API now
2024-06-04 09:06:36 -07:00
Alejandro Alonso
92e6a989b2
Cache TID in TLS on Linux
2024-06-04 09:06:36 -07:00
Alejandro Alonso
1146b41d14
Add the underscored unsafe locking primitives
2024-06-04 09:06:36 -07:00
Alejandro Alonso
2a60c88457
Implement Mutex in Synchronization
2024-06-04 09:06:34 -07:00