Replies: 2 comments 1 reply
-
I inherited most of the code in the |
Beta Was this translation helpful? Give feedback.
1 reply
-
Also you can use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Reading some of the macdriver code, like:
I don't see how that
pool
is able to do anything.Reading https://developer.apple.com/documentation/foundation/nsautoreleasepool, it seems that it's very much thread-specific, but the code above (and other similar uses of Object.Autorelease, etc) don't seem to care about which rando thread the Go runtime throws them on and moves them to.
It seems there might be some
runtime.LockOSThread
usage missing?I do see some, though:
Looking at those, it seems the requirement is that it's the caller's responsibility to only run code in goroutines that have been previously pinned to a thread?
Beta Was this translation helpful? Give feedback.
All reactions