-
Notifications
You must be signed in to change notification settings - Fork 260
fix: declare the core.lock to be a pointer to make core concurrency safe #1626
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
Conversation
to the same pointer
|
@timraymond that this is necessary feels like something is big wrong, wdyt? |
|
@timraymond currently we are only able to have a single encoder shared between a core and its derived. so the mutex here is to protect the traceTelemetry of encoder while there is a process working on resetting/updating it |
@rbtr any thoughts on this? |
|
@ZetaoZhuang I regret the singleton gobber, I don't think this is sustainable. I discussed this with @timraymond who had the idea that maybe we could use protobuf to encode/decode the |
|
@rbtr btw, I approved this because the code in its current state is provably broken, and this patch does provide a minimal fix. I agree that we should investigate using protobufs, but I don't think this PR should be a forcing function for that investigation. I'll open an issue with the idea so that it can be handled separately. |
+1 on the protobuf. we can do the investigation on protobufs separately. |
|
no objection |
…afe (Azure#1626) declare core.lock to be a pointer, so the lock in cloned core can point to the same pointer
Reason for Change:
To make the AI Core concurrency safe, we need to declare the core.lock to be a pointer so in cloned core we can point to the same lock
Issue Fixed:
Requirements:
Notes: