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

Commit

Permalink
Merge pull request #5 from parkerha1/ready-fix
Browse files Browse the repository at this point in the history
Fixes Ready to only load the library once
  • Loading branch information
etdamiba-intel authored Jan 10, 2024
2 parents d1943e3 + 918af1d commit bf5ecf6
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 bf5ecf6

Please sign in to comment.