LockOSThread no longer needed
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
736a80d773
commit
e92f79a950
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue