-
-
Notifications
You must be signed in to change notification settings - Fork 210
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
Change __sync_* to std::atomic and remove unneeded code #266
Conversation
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.
Clang-Tidy
found issue(s) with the introduced code (1/1)
static const unsigned int max_size = 32; | ||
|
||
signal_bitfield() : m_bitfield(0), m_size(0) {} | ||
|
||
signal_bitfield() : m_thread_id(std::this_thread::get_id()), m_size(0), m_bitfield(0) {} |
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.
invalid case style for private member m_thread_id
signal_bitfield() : m_thread_id(std::this_thread::get_id()), m_size(0), m_bitfield(0) {} | |
signal_bitfield() : m_threadId(std::this_thread::get_id()), m_size(0), m_bitfield(0) {} |
void work(); | ||
|
||
unsigned int add_signal(slot_type slot); | ||
void handover(std::thread::id thread_id) { m_thread_id = thread_id; } |
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.
invalid case style for private member m_thread_id
void handover(std::thread::id thread_id) { m_thread_id = thread_id; } | |
void handover(std::thread::id thread_id) { m_threadId = thread_id; } |
|
||
private: | ||
std::thread::id m_thread_id; |
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.
invalid case style for private member m_thread_id
std::thread::id m_thread_id; | |
std::thread::id m_threadId; |
Update __sync_* to std::atomic.
Update __sync_* to std::atomic.
No description provided.