/// Register a new `Signal` instance's channel sender.
/// Returns a `SignalId` which should be later used for deregistering
/// this sender.
Register a new `Signal` instance's channel sender.
Returns a `SignalId` which should be later used for deregistering
this sender.
Register a new ` Signal ` instance ' s channel sender . Returns a ` SignalId ` which should be later used for deregistering this sender .
fn register_signal_sender(signal: c_int, tx: SignalSender) -> SignalId {
        let tx = Box::new(tx);
        let id = SignalId::from(&tx);
        let idx = signal as usize;
        globals().signals[idx].recipients.lock().unwrap().push(tx);
        id
    }
fn register_signal_sender ( signal : c_int , tx : SignalSender ) -> SignalId { let tx = Box :: new ( tx ) ; let id = SignalId :: from ( & tx ) ; let idx = signal as usize ; globals ( ) . signals [ idx ] . recipients . lock ( ) . unwrap ( ) . push ( tx ) ; id }
Register a new `Signal` instance's channel sender.
Register a new ` Signal ` instance ' s channel sender .
signal
c_int
tx
SignalSender