Skip to content

[concurrency/stdlib] declare POSIXErrorCode as Sendable #75000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions stdlib/public/Platform/POSIXError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

/// Enumeration describing POSIX error codes.
@objc
public enum POSIXErrorCode : Int32 {
public enum POSIXErrorCode: Int32, Sendable {
/// Operation not permitted.
case EPERM = 1
/// No such file or directory.
Expand Down Expand Up @@ -266,7 +266,7 @@ public enum POSIXErrorCode : Int32 {
#elseif os(Linux) || os(Android)

/// Enumeration describing POSIX error codes.
public enum POSIXErrorCode : Int32 {
public enum POSIXErrorCode: Int32, Sendable {
/// Operation not permitted.
case EPERM = 1
/// No such file or directory.
Expand Down Expand Up @@ -561,7 +561,7 @@ public enum POSIXErrorCode : Int32 {
// Matches WASI-libc declarations at https://github.com/WebAssembly/wasi-libc/blob/ad513341/libc-bottom-half/headers/public/wasi/api.h#L106

/// Enumeration describing POSIX error codes.
public enum POSIXErrorCode : Int32 {
public enum POSIXErrorCode: Int32, Sendable {
/// Argument list too long.
case E2BIG = 1
/// Permission denied.
Expand Down Expand Up @@ -727,7 +727,7 @@ public enum POSIXErrorCode : Int32 {
#elseif os(Windows)

/// Enumeration describing POSIX error codes.
public enum POSIXErrorCode : Int32 {
public enum POSIXErrorCode: Int32, Sendable {

/// Operation not permitted
case EPERM = 1
Expand Down Expand Up @@ -853,7 +853,7 @@ public enum POSIXErrorCode : Int32 {
#elseif os(OpenBSD) || os(FreeBSD)

/// Enumeration describing POSIX error codes.
public enum POSIXErrorCode : Int32 {
public enum POSIXErrorCode: Int32, Sendable {
/// Operation not permitted
case EPERM = 1
/// No such file or directory
Expand Down