From 08eb84cbc73179fc2e5151f9d6947a568ef82343 Mon Sep 17 00:00:00 2001 From: Jerry Ling Date: Mon, 18 Mar 2024 13:31:09 -0400 Subject: [PATCH] use blocking @ccall for xrootdgo (#311) --- src/streamsource.jl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/streamsource.jl b/src/streamsource.jl index d926141c..048cafb0 100644 --- a/src/streamsource.jl +++ b/src/streamsource.jl @@ -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)