You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From the docs:
"It's recommended to not call withThreadLocal(_:) or get the threadLocal pointer each individual time it's needed. Retrieving the thread-local instance incurs avoidable overhead."
That means right now I'm passing the: let threadLocal = Xoroshiro.threadLocal
From the thread into my functions e.g.: init(_ theadLocalRandom: UnsafeMutablePointer<Xoroshiro>) { ..
Is there a better way? Could RandomKit cache the UnsafeMutablePointer for each thread so that the application programmer didn't have to think about passing the thread owned pointer to each function called by the thread?
Thanks for the awesome repository and software 👍
The text was updated successfully, but these errors were encountered:
From the docs:
"It's recommended to not call withThreadLocal(_:) or get the threadLocal pointer each individual time it's needed. Retrieving the thread-local instance incurs avoidable overhead."
That means right now I'm passing the:
let threadLocal = Xoroshiro.threadLocal
From the thread into my functions e.g.:
init(_ theadLocalRandom: UnsafeMutablePointer<Xoroshiro>) { ..
Is there a better way? Could RandomKit cache the UnsafeMutablePointer for each thread so that the application programmer didn't have to think about passing the thread owned pointer to each function called by the thread?
Thanks for the awesome repository and software 👍
The text was updated successfully, but these errors were encountered: