LockOSThread no longer needed
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
DataHoarder 2022-07-13 22:15:45 +02:00
parent 736a80d773
commit e92f79a950
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk

View file

@ -8,7 +8,6 @@ import "C"
import (
"fmt"
"log"
"runtime"
"runtime/cgo"
"unsafe"
)
@ -54,8 +53,6 @@ func (g *Gaborator) GaborBlockTransform(source chan []float32) (channel chan []f
channel = g.GetChannel()
go func() {
runtime.LockOSThread()
defer runtime.UnlockOSThread()
defer g.ProcessingFinished()
for {
@ -83,8 +80,6 @@ func (g *Gaborator) GaborTransform(source chan float32) (channel chan []float32)
channel = g.GetChannel()
go func() {
runtime.LockOSThread()
defer runtime.UnlockOSThread()
defer g.ProcessingFinished()
audioData := make([]float32, 0, g.audioBlockSize)