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

[Locator] Make it better and even more incredible. #182

Merged
merged 3 commits into from
Apr 1, 2015

Conversation

kobolog
Copy link
Member

@kobolog kobolog commented Mar 30, 2015

Make locator thread-safe since the Unicorn Cluster will issue link_node() and drop_node() from random ZK client threads, and also drop useless crap.

@kobolog
Copy link
Member Author

kobolog commented Mar 30, 2015

@3Hren @antmat: WTB review!

@kobolog kobolog force-pushed the kobolog/locator-threads branch 3 times, most recently from d431c91 to 1ae6756 Compare March 31, 2015 00:51
@kobolog
Copy link
Member Author

kobolog commented Mar 31, 2015

So, the api::client<T> is not thread-safe, but Locator makes sure it's synchronized across the place. Everything else should be thread-safe now.

@kobolog kobolog force-pushed the kobolog/locator-threads branch 2 times, most recently from 9698978 to 30aacbd Compare March 31, 2015 02:20
template<class Event>
struct traits {
struct traits<Event, true> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the benefit of weird compilation error on static assert with pretty looking message?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Static assert error output looks even weirder that this on GCC 4.6.
On Вт, 31 марта 2015 г. at 9:08 Anton Matveenko [email protected]
wrote:

In include/cocaine/api/connect.hpp
#182 (comment):

 template<class Event>
  • struct traits {
  • struct traits<Event, true> {

What's the benefit of weird compilation error on static assert with pretty
looking message?


Reply to this email directly or view it on GitHub
https:/cocaine/cocaine-core/pull/182/files#r27476564.

This time enforce the rule about disallowing auto method return types for method definitions in
source files, when it's not necessary.
@kobolog kobolog changed the title [Locator] Thread safety! [Locator] Make it better and even more incredible. Apr 1, 2015
kobolog pushed a commit that referenced this pull request Apr 1, 2015
[Locator] Make it better and even more incredible.
@kobolog kobolog merged commit 227b733 into master Apr 1, 2015
@kobolog kobolog deleted the kobolog/locator-threads branch April 1, 2015 18:04
antmat pushed a commit to antmat/cocaine-core that referenced this pull request Jun 19, 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.

2 participants