Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
Fixes Ready to only load the library once
Browse files Browse the repository at this point in the history
Signed-off-by: Parker Harris <[email protected]>
  • Loading branch information
parkerha1 committed Jan 9, 2024
1 parent d1943e3 commit 918af1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion isal_cgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ func NewWriterLevel(w io.Writer, level int) (*Writer, error) {
//If NewWriter/NewReader or NewWriterLevel is called before Ready, initialize the dynamic loads using Ready()

func Ready() bool {

if LIB_LOADED == 1 {
return true
}
// load the isal library and the symbols
ret := C.isal_dload_functions()
if ret != 0 {
Expand Down

0 comments on commit 918af1d

Please sign in to comment.