fn new(token: Token, interest: Ready, opt: PollOpt) -> ReadinessNode {
        ReadinessNode {
            state: AtomicState::new(interest, opt),
            // Only the first token is set, the others are initialized to 0
            token_0: UnsafeCell::new(token),
            token_1: UnsafeCell::new(Token(0)),
            token_2: UnsafeCell::new(Token(0)),
            next_readiness: AtomicPtr::new(ptr::null_mut()),
            update_lock: AtomicBool::new(false),
            ref_count: AtomicUsize::new(3),
        }
    }
/// Return a new `ReadinessNode`, initialized with a ref_count of 3.
Return a new `ReadinessNode`, initialized with a ref_count of 3.
Return a new ` ReadinessNode ` initialized with a ref_count of 3 .
fn new(token: Token, interest: Ready, opt: PollOpt) -> ReadinessNode {
        ReadinessNode {
            state: AtomicState::new(interest, opt),
            // Only the first token is set, the others are initialized to 0
            token_0: UnsafeCell::new(token),
            token_1: UnsafeCell::new(Token(0)),
            token_2: UnsafeCell::new(Token(0)),
            next_readiness: AtomicPtr::new(ptr::null_mut()),
            update_lock: AtomicBool::new(false),
            ref_count: AtomicUsize::new(3),
        }
    }
fn new ( token : Token , interest : Ready , opt : PollOpt ) -> ReadinessNode { ReadinessNode { state : AtomicState :: new ( interest , opt ) , // Only the first token is set, the others are initialized to 0 token_0 : UnsafeCell :: new ( token ) , token_1 : UnsafeCell :: new ( Token ( 0 ) ) , token_2 : UnsafeCell :: new ( Token ( 0 ) ) , next_readiness : AtomicPtr :: new ( ptr :: null_mut ( ) ) , update_lock : AtomicBool :: new ( false ) , ref_count : AtomicUsize :: new ( 3 ) , } }
Return a new `ReadinessNode`, initialized with a ref_count of 3.
Return a new ` ReadinessNode ` initialized with a ref_count of 3 .
token
Token
interest
Ready
opt
PollOpt