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

Fixed the reset_stream bug caused by InputParser::exit_parser #3649

Closed
wants to merge 1 commit into from

Conversation

lambday
Copy link
Member

@lambday lambday commented Feb 21, 2017

The method exit_parser calls the destructor of the std::thread
object (assuming C++11 is present). A thread join or detatch
must be performed before this. So, added a check before calling
exit_parser in StreamingDenseFeatures and StreamingVwFeatures
whether the parser is in running state. If it is, then added a
call to end_parser() before calling exit_parser(), which does
the thread join.

  The method exit_parser calls the destructor of the std::thread
  object (assuming C++11 is present). A thread join or detatch
  must be performed before this. So, added a check before calling
  exit_parser in StreamingDenseFeatures and StreamingVwFeatures
  whether the parser is in running state. If it is, then added a
  call to end_parser() before calling exit_parser(), which does
  the thread join.
@vigsterkr vigsterkr closed this Feb 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants