Minor refactoring/fix of use of atomic_bool
This commit is contained in:
parent
5c8480e5bc
commit
1ecf9bff4f
1 changed files with 2 additions and 2 deletions
|
@ -288,7 +288,7 @@ void UDPC::Context::update_impl() {
|
|||
{
|
||||
unsigned char *sk = nullptr;
|
||||
unsigned char *pk = nullptr;
|
||||
if(keysSet.load()) {
|
||||
if(keysSet.load(std::memory_order_relaxed)) {
|
||||
sk = this->sk;
|
||||
pk = this->pk;
|
||||
}
|
||||
|
@ -1206,7 +1206,7 @@ void UDPC::Context::update_impl() {
|
|||
}
|
||||
unsigned char *sk = nullptr;
|
||||
unsigned char *pk = nullptr;
|
||||
if(keysSet.load()) {
|
||||
if(keysSet.load(std::memory_order_relaxed)) {
|
||||
sk = this->sk;
|
||||
pk = this->pk;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue