-
Notifications
You must be signed in to change notification settings - Fork 89
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
Multithreading improvements #78
Conversation
The commit comments look awesome. I can't wait to dig in! |
Restarted Travis build. It complained that received no output when running |
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.
Looks great. I have not tested on mac or Windows. I see there are some platform-specific areas, so will take a hard look at those within the next few days.
} | ||
else | ||
{ // possibly shutdown? | ||
std::cerr << "unhandled exception in thread '" << name << "'\n"; |
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.
To compile on Ubuntu 18.04, need to include iostream or remove stdout streams
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.
Added. Thanks!
if( !strcmp( boost::unit_test::framework::master_test_suite().argv[i], "--pool-threads" ) ) | ||
{ | ||
uint16_t threads = atoi(boost::unit_test::framework::master_test_suite().argv[++i]); | ||
std::cout << "Using " << threads << " pool threads\n"; |
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.
To compile on Ubuntu 18.04, need to remove stdout streams or include iostream header
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.
Added. Thanks!
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.
Tests ran successfully in Linux, problems on mac and Windows, but highly likely that the problems are unrelated to the multithreading changes.
}; | ||
|
||
friend class ticket_guard; | ||
boost::atomic<future<void>*> latch; |
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.
need to include boost/atomic/atomic.hpp to compile in Windows.
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.
Added, thanks!
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.
Tested with Boost 1.67 / Ubuntu 18.04. Reviewed code and all looks good. Thank you!
Thanks! |
Part of bitshares/bitshares-core#1079
Work in progress, please do not merge yet!