-
Notifications
You must be signed in to change notification settings - Fork 592
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
Replace IceUtil::Mutex with std::mutex #1763
Conversation
@@ -44,61 +44,10 @@ mutex staticMutex; | |||
int instanceCount = 0; | |||
bool initOpenSSL = false; | |||
|
|||
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) |
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.
I think it doesn't make sense to support this older OpenSSL versions with 3.8. As per libressl I think is fine to remove this code we are not testing it.
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.
I agree!
@@ -8,6 +8,7 @@ | |||
#include <IceUtil/Config.h> | |||
#include <IceUtil/Lock.h> | |||
#include <IceUtil/Cond.h> | |||
#include <IceUtil/Mutex.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.
Do we still use Mutex and Monitor? If not, I would remove them entirely.
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.
I still have to fix the tests, Application and Timer classes.
@@ -44,61 +44,10 @@ mutex staticMutex; | |||
int instanceCount = 0; | |||
bool initOpenSSL = false; | |||
|
|||
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) |
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.
I agree!
{ | ||
timedWait(waitTime); | ||
if (_conditionVariable.wait_until(lock, chrono::steady_clock::now() + waitTime) == cv_status::timeout) |
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.
We should revisit this code.
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.
Looks good to me!
This is a follow-up to #1755, replaces most of the remaining usages for IceUtil::Mutex in sources, still left: