libcutils/mq.c
static bool peerIsDead(Peer* peer, pid_t pid) {
    size_t i;
    for (i = 0; i < PEER_HISTORY; i++) {
        pid_t deadPeer = peer->deadPeers[i];
        if (deadPeer == 0) {
            return false;
        }
        if (deadPeer == pid) {
            return true;
        }
    }
    return false;
}
/**
 * Checks whether a peer died recently.
 */
Checks whether a peer died recently.
Checks whether a peer died recently .
static bool peerIsDead(Peer* peer, pid_t pid) {
    size_t i;
    for (i = 0; i < PEER_HISTORY; i++) {
        pid_t deadPeer = peer->deadPeers[i];
        if (deadPeer == 0) {
            return false;
        }
        if (deadPeer == pid) {
            return true;
        }
    }
    return false;
}
static bool peerIsDead ( Peer * peer , pid_t pid ) { size_t i ; for ( i = 0 ; i < PEER_HISTORY ; i ++ ) { pid_t deadPeer = peer -> deadPeers [ i ] ; if ( deadPeer == 0 ) { return false ; } if ( deadPeer == pid ) { return true ; } } return false ; }
Checks whether a peer died recently.
Checks whether a peer died recently .