Initialize thread local value on each thread#4
Open
jonson wants to merge 1 commit intomementum:masterfrom
Open
Initialize thread local value on each thread#4jonson wants to merge 1 commit intomementum:masterfrom
jonson wants to merge 1 commit intomementum:masterfrom
Conversation
drhighliner
approved these changes
Feb 1, 2021
drhighliner
left a comment
There was a problem hiding this comment.
Checked the code. Works like a charm!
|
I am getting the following error when calling indicators from a thread:
|
|
I test it just now and for me worked like charm too! THX |
neilsmurphy
pushed a commit
to neilsmurphy/bta-lib
that referenced
this pull request
Aug 24, 2021
…in btalib parent.
neilsmurphy
added a commit
to neilsmurphy/bta-lib
that referenced
this pull request
Aug 24, 2021
Changed as per Initialize thread local value on each thread mementum#4 in bta…
spyke555
approved these changes
Mar 29, 2022
spyke555
left a comment
There was a problem hiding this comment.
Fixed the issue I was having, thanks!
|
Thanks man! U are awesome. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Attributes on the thread local
metadatavariable were being initialized at import time by the calling thread. All access from other threads were result in errors likeAttributeError: '_thread._local' object has no attribute 'minperiods''.This change make the initialization lazy via a property and binds to the calling thread.