refactor(Core/Common): restyle tools with astyle (#3706)
This commit is contained in:
parent
0bee5af962
commit
7f26c9ddad
28 changed files with 269 additions and 272 deletions
|
|
@ -27,7 +27,7 @@ static void threadIdCallback(CRYPTO_THREADID* id)
|
|||
void OpenSSLCrypto::threadsSetup()
|
||||
{
|
||||
cryptoLocks.resize(CRYPTO_num_locks());
|
||||
for(int i = 0 ; i < CRYPTO_num_locks(); ++i)
|
||||
for (int i = 0 ; i < CRYPTO_num_locks(); ++i)
|
||||
{
|
||||
cryptoLocks[i] = new std::mutex();
|
||||
}
|
||||
|
|
@ -40,7 +40,7 @@ void OpenSSLCrypto::threadsCleanup()
|
|||
{
|
||||
CRYPTO_set_locking_callback(nullptr);
|
||||
CRYPTO_THREADID_set_callback(nullptr);
|
||||
for(int i = 0 ; i < CRYPTO_num_locks(); ++i)
|
||||
for (int i = 0 ; i < CRYPTO_num_locks(); ++i)
|
||||
{
|
||||
delete cryptoLocks[i];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue