Haivision / srtgo

Go bindings for SRT. Advantages of SRT technology for an easy to use programming language
Mozilla Public License 2.0
185 stars 52 forks source link

Full errno handling #35

Closed gizahNL closed 3 years ago

gizahNL commented 3 years ago

Handle all SRT_E values and create typed errors that can be checked by consumers of srtgo library. Based on the runtime syscall.Errno code. In all functions that can return an srt error value the OS thread is locked, to make sure golang does not schedule is away from the thread. This is needed since srt stores it's error value in thread local storage.