fn unblock_some_thread(&mut self, set: BlockSetId) -> Option<ThreadId> {
        for (id, thread) in self.threads.iter_enumerated_mut() {
            if thread.state == ThreadState::Blocked(set) {
                trace!("unblocking {:?} in blockset {:?}", id, set);
                thread.state = ThreadState::Enabled;
                return Some(id);
            }
        }
        None
    }
/// Unblock any one thread from the given blockset if it contains at least
/// one. Return the id of the unblocked thread.
Unblock any one thread from the given blockset if it contains at least
one. Return the id of the unblocked thread.
Unblock any one thread from the given blockset if it contains at least one . Return the id of the unblocked thread .
fn unblock_some_thread(&mut self, set: BlockSetId) -> Option<ThreadId> {
        for (id, thread) in self.threads.iter_enumerated_mut() {
            if thread.state == ThreadState::Blocked(set) {
                trace!("unblocking {:?} in blockset {:?}", id, set);
                thread.state = ThreadState::Enabled;
                return Some(id);
            }
        }
        None
    }
fn unblock_some_thread ( & mut self , set : BlockSetId ) -> Option < ThreadId > { for ( id , thread ) in self . threads . iter_enumerated_mut ( ) { if thread . state == ThreadState :: Blocked ( set ) { trace ! ( " " id set ) ; thread . state = ThreadState :: Enabled ; return Some ( id ) ; } } None }
Unblock any one thread from the given blockset if it contains at least
one.
Unblock any one thread from the given blockset if it contains at least one .
&mut self
set
BlockSetId
&mut self
set
BlockSetId