-
Notifications
You must be signed in to change notification settings - Fork 109
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
Initialize thread local value on each thread #4
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, this will be handy
…in btalib parent.
Changed as per Initialize thread local value on each thread mementum#4 in bta…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the issue I was having, thanks!
Thanks man! U are awesome. |
Attributes on the thread local
metadata
variable 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.