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

Change __sync_* to std::atomic and remove unneeded code #266

Merged
merged 7 commits into from
Dec 2, 2024

Conversation

rakshasa
Copy link
Owner

@rakshasa rakshasa commented Dec 1, 2024

No description provided.

Copy link

@github-actions github-actions bot left a 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) {}
Copy link

Choose a reason for hiding this comment

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

⚠️ readability-identifier-naming ⚠️
invalid case style for private member m_thread_id

Suggested change
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; }
Copy link

Choose a reason for hiding this comment

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

⚠️ readability-identifier-naming ⚠️
invalid case style for private member m_thread_id

Suggested change
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;
Copy link

Choose a reason for hiding this comment

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

⚠️ readability-identifier-naming ⚠️
invalid case style for private member m_thread_id

Suggested change
std::thread::id m_thread_id;
std::thread::id m_threadId;

@rakshasa rakshasa merged commit 1f350a3 into master Dec 2, 2024
1 check passed
@rakshasa rakshasa deleted the fix/atomic-types branch December 2, 2024 09:07
rakshasa added a commit that referenced this pull request Dec 22, 2024
rakshasa added a commit that referenced this pull request Jan 20, 2025
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.

1 participant