Skip to content

Commit

Permalink
use blocking @CCall for xrootdgo (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
Moelf authored Mar 18, 2024
1 parent cba9a03 commit 08eb84c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/streamsource.jl
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,8 @@ end

function read_seek_nb(fobj::XRDStream, seek, nb)
buffer = Vector{UInt8}(undef, nb)
@threadcall((:ReadAt, xrootdgo), Cvoid, (Ptr{UInt8}, Cstring, Clong, Clong), buffer, fobj.gofile_id, nb, seek)
# @ccall xrootdgo.ReadAt(buffer::Ptr{UInt8},
# fobj.gofile_id::Cstring, nb::Clong, seek::Clong)::Cvoid
# @threadcall((:ReadAt, xrootdgo), Cvoid, (Ptr{UInt8}, Cstring, Clong, Clong), buffer, fobj.gofile_id, nb, seek)
@ccall xrootdgo.ReadAt(buffer::Ptr{UInt8}, fobj.gofile_id::Cstring, nb::Clong, seek::Clong)::Cvoid
return buffer
end
function _read!(ptr, fobj, nb, seekloc)
Expand Down

0 comments on commit 08eb84c

Please sign in to comment.