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

Fix mutexes in sc_prim_channel #104

Conversation

markfoodyburton
Copy link
Contributor

Added the mutex to 'pending' and removed it from the attach detach functions, which should not need it as they are not marked as thread safe, so should be called from the systemc thread.

@markfoodyburton markfoodyburton force-pushed the sc_prim_channel_thread_safety branch 3 times, most recently from eaaf4d6 to 7d219e6 Compare November 20, 2024 13:49
pah and others added 6 commits November 22, 2024 08:35
Use a std::atomic to handle the time_resolution_fixed flag in
the kernel, tracking whether the time resolution has been
set or non-zero sc_time objects have been constructed.

Signed-off-by: Philipp A. Hartmann <pah@apple.com>
Signed-off-by: Philipp A. Hartmann <pah@apple.com>
Signed-off-by: Philipp A. Hartmann <pah@apple.com>
Signed-off-by: Mark Burton <mburton@quicinc.com>
Align async_event example code with the scp_async_event as it's cleaner
Prevent race condition on startup in sc_suspend test

Signed-off-by: Mark Burton <mburton@quicinc.com>
Signed-off-by: Mark Burton <mburton@quicinc.com>
@markfoodyburton markfoodyburton force-pushed the sc_prim_channel_thread_safety branch from 7d219e6 to 29717f2 Compare November 22, 2024 14:42
Copy link
Contributor

@maehne maehne left a comment

Choose a reason for hiding this comment

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

Looks good to me, but I am not deeply familiar with this aspect of the implementation.

@lmailletcontoz lmailletcontoz merged commit 935c59e into accellera-official:main Nov 25, 2024
41 of 80 checks passed
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.

4 participants