class
Rubellite::Spinel::ChannelBridge(T)
Overview
Thread-safe bidirectional channel bridge connecting Crystal's Channel(T) with native C
Defined in:
rubellite/spinel/channel.crConstructors
Instance Method Summary
- #channel : Channel(T)
- #close : Nil
- #closed? : Bool
- #lock : Mutex
- #receive? : T | Nil
- #recv_f64? : Float64 | Nil
- #recv_i64? : Int64 | Nil
- #send(val : T) : Nil
- #send_bool(val : Bool) : Nil
- #send_f64(val : Float64) : Nil
- #send_i64(val : Int64) : Nil
-
#to_c_context : ChannelContext
Creates a C-ABI context struct with function pointers referencing this bridge
Instance methods inherited from class Rubellite::Spinel::BaseChannelBridge
close : Nil
close,
closed? : Bool
closed?,
recv_f64? : Float64 | Nil
recv_f64?,
recv_i64? : Int64 | Nil
recv_i64?,
send_bool(val : Bool) : Nil
send_bool,
send_f64(val : Float64) : Nil
send_f64,
send_i64(val : Int64) : Nil
send_i64
Constructor Detail
Instance Method Detail
def to_c_context : ChannelContext
#
Creates a C-ABI context struct with function pointers referencing this bridge