Skip to content

Commit d05c4b9

Browse files
committed
wip: sendable
1 parent 120f8b3 commit d05c4b9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/System/FileLock.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ extension FileDescriptor {
1414
///
1515
/// The corresponding C type is `struct flock`.
1616
@frozen
17-
public struct FileLock: RawRepresentable {
17+
public struct FileLock: RawRepresentable, Sendable {
1818
@_alwaysEmitIntoClient
1919
public var rawValue: CInterop.FileLock
2020

@@ -93,7 +93,7 @@ extension FileDescriptor.FileLock {
9393
/// The kind or type of a lock: read (aka "shared"), write (aka "exclusive"), or none
9494
/// (aka "unlock").
9595
@frozen
96-
public struct Kind: RawRepresentable, Hashable {
96+
public struct Kind: RawRepresentable, Hashable, Sendable {
9797
@_alwaysEmitIntoClient
9898
public var rawValue: CInterop.CShort
9999

Sources/System/ProcessID.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
///
66
/// The corresponding C type is `pid_t`
77
@frozen
8-
public struct ProcessID: RawRepresentable, Hashable {
8+
public struct ProcessID: RawRepresentable, Hashable, Sendable {
99
@_alwaysEmitIntoClient
1010
public var rawValue: CInterop.PID
1111

0 commit comments

Comments
 (0)