-
Notifications
You must be signed in to change notification settings - Fork 403
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
Improve POSIX mutex test #484
Labels
test
A module/integration/stress/etc test for a component
Comments
shankar-in
added a commit
to nihalchari/iceoryx
that referenced
this issue
Feb 2, 2021
Signed-off-by: Sankara Narayanan Chandrasekar (RBEI/EMT2) <[email protected]>
nihalchari
pushed a commit
to nihalchari/iceoryx
that referenced
this issue
Feb 5, 2021
Signed-off-by: Sankara Narayanan Chandrasekar (RBEI/EMT2) <[email protected]>
nihalchari
pushed a commit
to nihalchari/iceoryx
that referenced
this issue
Feb 5, 2021
Signed-off-by: Sankara Narayanan Chandrasekar (RBEI/EMT2) <[email protected]>
nihalchari
pushed a commit
to nihalchari/iceoryx
that referenced
this issue
Feb 5, 2021
…yx#484-improve-posix-mutex-test
nihalchari
pushed a commit
to nihalchari/iceoryx
that referenced
this issue
Feb 5, 2021
Signed-off-by: Sankara Narayanan Chandrasekar (RBEI/EMT2) <[email protected]>
nihalchari
pushed a commit
to nihalchari/iceoryx
that referenced
this issue
Feb 8, 2021
…tex test Signed-off-by: Sankara Narayanan Chandrasekar (RBEI/EMT2) <[email protected]>
marthtz
added a commit
that referenced
this issue
Feb 9, 2021
…test Iox #484 improve posix mutex test
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Brief feature description
Using the While loop will consume CPU cycles and other threads will have to wait. Using the sleep_for will free up the CPU for the define time so that other threads can utilize.-
Detailed information
The test_posix_mutex.cpp has DestructorFailsOnLockedMutex test case. It uses deadline timer with a While loop and this can be improved by replacing with sleep_for. Hint suggestion from @elBoberido ,
EXPECT_DEATH({{ iox::posix::mutex mtx{false}; mtx.lock; }}, ".*");
The text was updated successfully, but these errors were encountered: