Julia 1.12.0 Beta3returned by external libraries. See the manual section about modules for more details. See also: OncePerProcess. ## Examples const foo_data_ptr = Ref{Ptr{Cvoid}}(0) function __init__() ccall((:foo_init :libfoo), Ptr{Cvoid}, )) nothing end source Base.OncePerProcess - Type. OncePerProcess{T}(init::Function()) -> T Calling a OncePerProcess object returns a value of type T by running the function or other state which won't get serialized. ## Example julia> const global_state = Base.OncePerProcess{Vector{UInt32}}() do println("Making lazy global value...done.") return [Libc0 码力 | 2057 页 | 7.44 MB | 1 年前3
julia 1.13.0 DEVreturned by external libraries. See the manual section about modules for more details. See also: OncePerProcess. ## Examples const foo_data_ptr = Ref{Ptr{Cvoid}}(0) function __init__() ccall((:foo_init :libfoo), Ptr{Cvoid}, )) nothing end source Base.OncePerProcess - Type. OncePerProcess{T}(init::Function()) -> T Calling a OncePerProcess object returns a value of type T by running the function or other state which won't get serialized. ## Example julia> const global_state = Base.OncePerProcess{Vector{UInt32}}() do println("Making lazy global value...done.") return [Libc0 码力 | 2058 页 | 7.45 MB | 1 年前3
Julia 1.12.0 Beta4returned by external libraries. See the manual section about modules for more details. See also: OncePerProcess. ## Examples const foo_data_ptr = Ref{Ptr{Cvoid}}(0) function __init__() ccall((:foo_init :libfoo), Ptr{Cvoid}, )) nothing end source Base.OncePerProcess - Type. OncePerProcess{T}(init::Function()) -> T Calling a OncePerProcess object returns a value of type T by running the function or other state which won't get serialized. ## Example julia> const global_state = Base.OncePerProcess{Vector{UInt32}}() do println("Making lazy global value...done.") return [Libc0 码力 | 2057 页 | 7.44 MB | 1 年前3
julia 1.12.0 beta1returned by external libraries. See the manual section about modules for more details. See also: OncePerProcess. ## Examples const foo_data_ptr = Ref{Ptr{Cvoid}}(0) function __init__() ccall((:foo_init :libfoo), Ptr{Cvoid}, )) nothing end source Base.OncePerProcess - Type. OncePerProcess{T}(init::Function()) -> T Calling a OncePerProcess object returns a value of type T by running the function or other state which won't get serialized. ## Example julia> const global_state = Base.OncePerProcess{Vector{UInt32}}() do println("Making lazy global value...done.") return [Libc0 码力 | 2047 页 | 7.41 MB | 1 年前3
Julia 1.12.0 RC1returned by external libraries. See the manual section about modules for more details. See also: OncePerProcess. ## Examples const foo_data_ptr = Ref{Ptr{Cvoid}}(0) function __init__() ccall((:foo_init :libfoo), Ptr{Cvoid}, )) nothing end source Base.OncePerProcess - Type. OncePerProcess{T}(init::Function()) -> T Calling a OncePerProcess object returns a value of type T by running the function 12 This type requires Julia 1.12 or later. ## Example julia> const global_state = Base.OncePerProcess{Vector{UInt32}}() do println("Making lazy global value...done.") return [Libc0 码力 | 2057 页 | 7.44 MB | 1 年前3
共 5 条
- 1













