JuliaInterop / ObjectiveC.jl

Objective-C embedded in Julia
Other
39 stars 10 forks source link

Add support for NSAutoreleasePool. #29

Closed maleadt closed 7 months ago

maleadt commented 7 months ago

This PR adds support for NSAutoreleasePool, and for running Julia code with an autorelease pool active. This is tricky for two reasons:

To work around both, I have a global lock to only ever have one piece of code running under an autorelease pool, while temporarily setting the current task's sticky bit to false to prevent thread migration.

codecov[bot] commented 7 months ago

Codecov Report

Attention: Patch coverage is 86.20690% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 72.06%. Comparing base (bbc8095) to head (b7b8c41).

Files Patch % Lines
src/foundation.jl 86.20% 4 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #29 +/- ## ========================================== + Coverage 69.84% 72.06% +2.21% ========================================== Files 9 9 Lines 630 655 +25 ========================================== + Hits 440 472 +32 + Misses 190 183 -7 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.