Skip to content

Commit

Permalink
Use async so that callback function returns properly
Browse files Browse the repository at this point in the history
  • Loading branch information
mkitti committed May 26, 2024
1 parent 61c653e commit 5dae0ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion filters/H5Zzstd/src/H5Zzstd.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ function H5Z_filter_zstd(
catch e
# "In the case of failure, the return value is 0 (zero) and all pointer arguments are left unchanged."
ret_value = Csize_t(0)
@error "H5Zzstd Non-Fatal ERROR: " exception=(e, catch_backtrace())
# Output Julia error via async so we do not task switch during callback
@async @error "H5Zzstd Non-Fatal ERROR: " exception=(e, catch_backtrace())
finally
if outbuf != C_NULL
Libc.free(outbuf)
Expand Down

0 comments on commit 5dae0ae

Please sign in to comment.