mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 05:06:24 +00:00
chore(Deps/Acelite): Update to 6.5.10 (#3450)
This commit is contained in:
15
deps/acelite/ace/Synch_Options.cpp
vendored
15
deps/acelite/ace/Synch_Options.cpp
vendored
@@ -3,6 +3,10 @@
|
||||
#include "ace/Global_Macros.h"
|
||||
#include "ace/config-all.h"
|
||||
|
||||
#if defined (ACE_HAS_ALLOC_HOOKS)
|
||||
# include "ace/Malloc_Base.h"
|
||||
#endif /* ACE_HAS_ALLOC_HOOKS */
|
||||
|
||||
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
|
||||
|
||||
ACE_ALLOC_HOOK_DEFINE (ACE_Synch_Options)
|
||||
@@ -44,11 +48,12 @@ ACE_Synch_Options::set (unsigned long options,
|
||||
this->options_ = options;
|
||||
this->timeout_ = timeout;
|
||||
|
||||
// Whoa, possible dependence on static initialization here. This
|
||||
// function is called during initialization of the statics above.
|
||||
// But, ACE_Time_Value::zero is a static object. Very fortunately,
|
||||
// its bits have a value of 0.
|
||||
if (this->timeout_ != ACE_Time_Value::zero)
|
||||
/*
|
||||
* Not using ACE_Time_Value::zero because of possible static init order
|
||||
* dependence. It would work fine because the memory would all zeros anyways,
|
||||
* but ubsan complains about it.
|
||||
*/
|
||||
if (timeout_ != ACE_Time_Value(0))
|
||||
ACE_SET_BITS (this->options_, ACE_Synch_Options::USE_TIMEOUT);
|
||||
|
||||
this->arg_ = arg;
|
||||
|
||||
Reference in New Issue
Block a user