36 std::unique_lock<std::mutex> lock(
mutex_);
45 std::unique_lock<std::mutex> lock(
mutex_);
52 std::unique_lock<std::mutex> lock(
mutex_);
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
void Signal()
increase the counter
bool TryWait()
Returns true if Wait() goes through.
int32 count_
the semaphore counter, 0 means block on Wait()
std::condition_variable condition_variable_
#define KALDI_ASSERT(cond)
void Wait()
decrease the counter