// gold-threads.cc -- thread support for gold
-#include <cassert>
-
#include "gold.h"
#ifdef ENABLE_THREADS
Lock_impl::~Lock_impl()
{
- assert(!this->acquired_);
+ gold_assert(!this->acquired_);
}
void
Lock_impl::acquire()
{
- assert(!this->acquired_);
+ gold_assert(!this->acquired_);
this->acquired_ = true;
}
void
Lock_impl::release()
{
- assert(this->acquired_);
+ gold_assert(this->acquired_);
this->acquired_ = false;
}
void
Condvar_impl::wait(Lock_impl* li)
{
- assert(li->acquired_);
+ gold_assert(li->acquired_);
}
void