Open scls19fr opened 8 years ago
Moving code
type IORBBuffer{T}
ord::Integer
datasize::Integer
pinned::Bool
readercount::Integer
writercount::Integer
markcount::Integer
buffer::AbstractArray{T}
end
to top of RingBuffer.jl
file doesn't help much
see
$ julia sample.jl
WARNING: static parameter T does not occur in signature for call at /Users/scls/.julia/v0.4/RingBuffer/src/RingBuffer.jl:26.
The method will not be callable.
ERROR: LoadError: LoadError: UndefVarError: IORBReader not defined
in include at /Applications/Julia-0.4.3.app/Contents/Resources/julia/lib/julia/sys.dylib
in include_from_node1 at /Applications/Julia-0.4.3.app/Contents/Resources/julia/lib/julia/sys.dylib
in include at /Applications/Julia-0.4.3.app/Contents/Resources/julia/lib/julia/sys.dylib
in include_from_node1 at /Applications/Julia-0.4.3.app/Contents/Resources/julia/lib/julia/sys.dylib
in process_options at /Applications/Julia-0.4.3.app/Contents/Resources/julia/lib/julia/sys.dylib
in _start at /Applications/Julia-0.4.3.app/Contents/Resources/julia/lib/julia/sys.dylib
while loading /Users/scls/.julia/v0.4/RingBuffer/src/RingBuffer.jl, in expression starting on line 29
while loading /Users/scls/.julia/v0.4/RingBuffer/sample.jl, in expression starting on line 1
with sample.jl
being:
include("src/RingBuffer.jl")
using RingBuffer
@scls19fr, thanks for your interest!
This was an experiment that I never finished--sorry about that.
I did see that you found the example in DataStructures.jl. Hopefully that helps.
Cheers!