// possibly existing @p alert
// calls. if not in MT mode, this
// is a no-op
- lock.acquire();
+ lock.lock();
// if data was already preloaded,
// then there is no more need to
// release lock. the lock is
// also released in the other
// branch of the if-clause
- lock.release();
- };
+ lock.unlock();
+ }
}
// synchronize with possible other
// invocations of this function and
// other functions in this class
- lock.acquire();
+ lock.lock();
// calling this function multiple
// times does no harm:
// vector is active does no harm
// either
(this->size() != 0))
- lock.release();
+ lock.unlock();
else
// data has not been preloaded so
// far, so go on! For this, start
// set the flag if so required
if (set_flag)
data_is_preloaded = true;
- lock.release();
+ lock.unlock();
#endif
}
}
else if (k == 2)
{
- coefficients_lock.release();
+ coefficients_lock.unlock();
compute_coefficients(1);
- coefficients_lock.acquire();
+ coefficients_lock.lock();
std::vector<double> c2(3);
// allow the called
// function to acquire it
// itself
- coefficients_lock.release();
+ coefficients_lock.unlock();
compute_coefficients(k - 1);
- coefficients_lock.acquire();
+ coefficients_lock.lock();
std::vector<double> ck(k + 1);