CSPspEmu.Hle.Threading.EventFlags.HleEventFlag.Poll C# (CSharp) 메소드

Poll() 공개 메소드

public Poll ( uint BitsToMatch, EventFlagWaitTypeSet WaitType, uint OutBits ) : bool
BitsToMatch uint
WaitType EventFlagWaitTypeSet
OutBits uint
리턴 bool
        public bool Poll(uint BitsToMatch, EventFlagWaitTypeSet WaitType, uint* OutBits)
        {
            if (OutBits != null)
            {
                *OutBits = Info.CurrentPattern;
            }

            if (
                (WaitType.HasFlag(EventFlagWaitTypeSet.Or))
                ? ((Info.CurrentPattern & BitsToMatch) != 0) // one or more bits of the mask
                : ((Info.CurrentPattern & BitsToMatch) == BitsToMatch)) // all the bits of the mask
            {
                _DoClear(WaitType, BitsToMatch);
                return true;
            }

            return false;
        }