swift
Concurrency: add Windows support to `SWIFT_TASK_PRINTF_DEBUG`
#37803
Merged

Concurrency: add Windows support to `SWIFT_TASK_PRINTF_DEBUG` #37803

compnerd
compnerd4 years ago

pthread_self is not portable to all platforms. Introduce a
_swift_get_current_thread_id to abstract over accessing the current
thread ID. On Windows, the thread ID and thread handle are two separate
entities, unlike POSIX threads which treats them the same.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

compnerd Concurrency: add Windows support to `SWIFT_TASK_PRINTF_DEBUG`
d09d4b96
compnerd
compnerd4 years ago
compnerd
compnerd4 years ago

@swift-ci please test

swift-ci
swift-ci4 years ago

Build failed
Swift Test OS X Platform
Git Sha - d09d4b9

compnerd
compnerd4 years ago

@swift-ci please test macOS platform

ktoso
ktoso approved these changes on 2021-06-07
ktoso4 years ago

Thanks, looks good -- LGTM

compnerd compnerd merged fccadb4b into main 4 years ago
compnerd compnerd deleted the printf-thread-id branch 4 years ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone