-
Notifications
You must be signed in to change notification settings - Fork 168
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
Missing pthread_mutex_consistent() #147
Missing pthread_mutex_consistent() #147
Conversation
pthread_mutex_consistent was added to glibc ver 2.12 - I'll add a check based on glibc version defines. |
… mutex_problem Conflicts: src/tightdb/thread.cpp
@@ -2,17 +2,31 @@ | |||
|
|||
#include <tightdb/exceptions.hpp> | |||
#include <tightdb/thread.hpp> | |||
#include <features.h> |
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.
As far as I know, <features.h> is not a standard header, nor is it required by POSIX. Consider Windows and Mac. On Linux, it will be included via <unistd.h>, which is already included below, so no explicit include seems to be required.
We must strive for a minimum level of portability where we require only that the platform is either POSIX or Windows. Of course, an even higher level of portability is welcome if it can be provided. Note that <unistd.h> is required by POSIX.
👍 (except for the problematic include) |
I don't know if you know it already, but after
you can do |
…istent Handle missing pthread_mutex_consistent() in glibc versions prior to 2.12
See the added FIXME for details.
@finnschiermer