-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
C++ize gpr_thread as grpc_core::Thread, make it 2-phase init (construct/Start) #14459
Conversation
|
|
|
|
2 similar comments
|
|
|
2 similar comments
|
|
|
1 similar comment
|
|
1 similar comment
|
|
|
|
|
|
|
Tests were all green but I decided to remerge master to avoid any chance of divergence |
|
|
/// MOVED -- contents were moved out and we're no longer tracking them | ||
enum ThreadState { FAKE, ALIVE, STARTED, DONE, FAILED, MOVED }; | ||
ThreadState state_; | ||
internal::ThreadInternalsInterface* impl_; |
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.
Note that I didn't make this a UniquePtr
because we should be able to use this structure without initialization, for the time being. (See the TODO above for explanation)
|
|
|
|
src/core/lib/gprpp/thd.h
Outdated
GPR_ASSERT(state_ == FAILED); | ||
} | ||
}; | ||
void Join() { |
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.
Add an empty line above to separate two functions
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!..
Looks much cleaner.
|
|
|
Test failures are all grpc-node issues and seem to be infrastructural. |
By removing the use of |
Builds on #14439 .