зеркало из https://github.com/mozilla/cubeb.git
Account for the fact that some OSes have longer callback duration and async logging is batched
This commit is contained in:
Родитель
b8765e132d
Коммит
cfc5692bf7
|
@ -75,7 +75,7 @@ void wait_for_audio_callback() {
|
||||||
data_callback_call_count.load(std::memory_order_acquire);
|
data_callback_call_count.load(std::memory_order_acquire);
|
||||||
while (audio_callback_index ==
|
while (audio_callback_index ==
|
||||||
data_callback_call_count.load(std::memory_order_acquire)) {
|
data_callback_call_count.load(std::memory_order_acquire)) {
|
||||||
delay(10);
|
delay(100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -146,7 +146,6 @@ TEST(cubeb, logging)
|
||||||
log_statements_received.store(0, std::memory_order_release);
|
log_statements_received.store(0, std::memory_order_release);
|
||||||
// Disabling logging should flush any log message -- wait a bit and check
|
// Disabling logging should flush any log message -- wait a bit and check
|
||||||
// that this is true.
|
// that this is true.
|
||||||
// delay(100);
|
|
||||||
ASSERT_EQ(log_statements_received.load(std::memory_order_acquire), 0u);
|
ASSERT_EQ(log_statements_received.load(std::memory_order_acquire), 0u);
|
||||||
log_callback_set = false;
|
log_callback_set = false;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче