Lines Matching refs:nFD
597 void SalXLib::Insert( int nFD, void* data, in Insert() argument
602 DBG_ASSERT( nFD, "can not insert stdin descriptor" ); in Insert()
603 DBG_ASSERT( !yieldTable[nFD].fd, "SalXLib::Insert fd twice" ); in Insert()
605 yieldTable[nFD].fd = nFD; in Insert()
606 yieldTable[nFD].data = data; in Insert()
607 yieldTable[nFD].pending = pending; in Insert()
608 yieldTable[nFD].queued = queued; in Insert()
609 yieldTable[nFD].handle = handle; in Insert()
611 FD_SET( nFD, &aReadFDS_ ); in Insert()
612 FD_SET( nFD, &aExceptionFDS_ ); in Insert()
614 if( nFD >= nFDs_ ) in Insert()
615 nFDs_ = nFD + 1; in Insert()
618 void SalXLib::Remove( int nFD ) in Remove() argument
620 FD_CLR( nFD, &aReadFDS_ ); in Remove()
621 FD_CLR( nFD, &aExceptionFDS_ ); in Remove()
623 yieldTable[nFD].fd = 0; in Remove()
625 if ( nFD == nFDs_ ) in Remove()
627 for ( nFD = nFDs_ - 1; in Remove()
628 nFD >= 0 && !yieldTable[nFD].fd; in Remove()
629 nFD-- ) ; in Remove()
631 nFDs_ = nFD + 1; in Remove()
674 for ( int nFD = 0; nFD < nFDs_; nFD++ ) in Yield() local
676 YieldEntry* pEntry = &(yieldTable[nFD]); in Yield()
679 DBG_ASSERT( nFD == pEntry->fd, "wrong fd in Yield()" ); in Yield()
758 for ( int nFD = 0; nFD < nFDs_; nFD++ ) in Yield() local
760 YieldEntry* pEntry = &(yieldTable[nFD]); in Yield()
763 if ( FD_ISSET( nFD, &ExceptionFDS ) ) { in Yield()
769 if ( FD_ISSET( nFD, &ReadFDS ) ) in Yield()