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

[IMT] Add TThreadedObject::GetAtSlotRaw #934

Merged
merged 2 commits into from
Sep 5, 2017

Conversation

eguiraud
Copy link
Member

@eguiraud eguiraud commented Sep 4, 2017

Compared to GetAtSlotUnchecked, GetAtSlotRaw trades some more
safety for some more performance: not only it avoids checking for
slot initialization (as GetAtSlotUnchecked does) but it also avoids
(copy-)construction of a shared_ptr.

I can add a test, just tell me where :)

Compared to `GetAtSlotUnchecked`, `GetAtSlotRaw` trades some more
safety for some more performance: not only it avoids checking for
slot initialization (as `GetAtSlotUnchecked` does) but it also avoids
construction of a `shared_ptr`.
@phsft-bot
Copy link
Collaborator

Starting build on centos7/gcc49, mac1012/native, slc6/gcc49, slc6/gcc62, ubuntu14/native with flags -Dvc=OFF -Dimt=ON -Dccache=ON
How to customize builds

1 similar comment
@phsft-bot
Copy link
Collaborator

Starting build on centos7/gcc49, mac1012/native, slc6/gcc49, slc6/gcc62, ubuntu14/native with flags -Dvc=OFF -Dimt=ON -Dccache=ON
How to customize builds

@dpiparo
Copy link
Member

dpiparo commented Sep 5, 2017

Hi @bluehood , this is exactly the feature we discussed a while ago. To make the PR even more complete, I could suggest a gtest for TThreadedObject, which would also increase our coverage given that it is a template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants