Skip to content
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

Work around open-telemetry/opentelemetry-swift#615 #667

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

semicoleon
Copy link
Contributor

#615 is still an issue when building for Linux, and the PR in the swift project appears to have stalled. This PR makes the subclass of Thread a plain class with a Thread property that spawns a thread with a closure instead. This appears to work fine on macOS and Linux in my limited testing so far.

I'm not sure if this PR should actually be merged, ideally the error would be resolved in Swift.

I also made a couple minor changes to support building with the Static Linux SDK as that made checking for Linux only compiler errors considerably easier.

Copy link
Member

@nachoBonafonte nachoBonafonte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure I want the block change also on non Linux platforms, I don't feel very safe changing existing behavior in users, thinking about memory and circular dependencies here. Could it be changed to only affect Linux?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants