mirror of
https://github.com/pion/mediadevices.git
synced 2025-10-23 16:43:11 +08:00
Use Mutex instead of WaitGroup
This commit is contained in:

committed by
Lukas Herman

parent
29d0299c5c
commit
993c23ee90
@@ -53,13 +53,6 @@ func BenchmarkRead(b *testing.B) {
|
||||
if err != nil {
|
||||
b.Skipf("Failed to capture image: %v", err)
|
||||
}
|
||||
defer func() {
|
||||
if r != nil {
|
||||
go func() {
|
||||
_, _ = r.Read() // Workaround for deadlock
|
||||
}()
|
||||
}
|
||||
}()
|
||||
|
||||
b.ResetTimer()
|
||||
for i := 0; i < b.N; i++ {
|
||||
|
Reference in New Issue
Block a user