-
Notifications
You must be signed in to change notification settings - Fork 178
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
Issues with Thread Waiting on Mac OS #1472
Comments
@hannemn do you remember? |
I haven't tried replacing it with |
Hi @JerryHyun, thanks for the finding! I just had a quick look into the implementation of pthread_cond_timedwait_relative_np and seems to be case that we utilize the function in the wrong manner. Even though Apple declared the time parameter in the function signature as |
Can you please crosscheck with this branch https://github.com/eclipse-ecal/ecal/tree/hotfix/timedwait-relative-mac-5-12 (it's based on 5.12.x) if the blocking issue at pthread_cond_timedwait_relative_np still appears on your mac? I have unfortunately no mac hardware here available to test my code changes. |
Hi @hannemn |
@JerryHyun can you provide feedback on this issue? does the hotfix solve the problem? |
Problem Description
When testing the eCAL library on mac OS, I noticed that sometimes it will execute the pthread_cond_timedwait_relative_np() function and get stuck for a very long time (I don't know the exact reason).
Looking at the source code above, eCAL on mac os uses the pthread_cond_timedwait_relative_np() function.
Why are you using pthread_cond_timedwait_relative_np() and not the pthread_cond_timedwait() function? (I have confirmed that the pthread_cond_timedwait() function exists on mac OS as well).
How to reproduce
I'm not sure how to reproduce it.
How did you get eCAL?
Custom Build / Built from source
Environment
eCAL System Information
No response
The text was updated successfully, but these errors were encountered: