Skip to content
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

Fix the lifetime of InferPayload (#241) #244

Merged
merged 1 commit into from
May 17, 2023
Merged

Conversation

Tabrizian
Copy link
Member

  • Add mutex for InferPayload to make sure it's thread-safe during callback

  • Remove reset for the promise

  • Address comment

  • Remove destructor

  • Fix lifetime of infer payload

  • Make sure the mutex is unlocked before promise.set_value

  • Revert "Make sure the mutex is unlocked before promise.set_value"

This reverts commit 2eb5c32.

  • fix leak

  • Serialize all the responses in decoupled BLS

  • use enable_shared_from_this

  • Add a warning about using "GetPtr"

  • Remove the callback from mutex lock


* Add mutex for InferPayload to make sure it's thread-safe during callback

* Remove reset for the promise

* Address comment

* Remove destructor

* Fix lifetime of infer payload

* Make sure the mutex is unlocked before promise.set_value

* Revert "Make sure the mutex is unlocked before promise.set_value"

This reverts commit 2eb5c32.

* fix leak

* Serialize all the responses in decoupled BLS

* use enable_shared_from_this

* Add a warning about using "GetPtr"

* Remove the callback from mutex lock

---------

Co-authored-by: Iman Tabrizian <itabrizian@nvidia.com>
@Tabrizian Tabrizian merged commit fcdc5cc into r23.05 May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants