Searched refs:whenUs (Results 1 – 3 of 3) sorted by relevance
175 int64_t whenUs; in post() local178 whenUs = (delayUs > INT64_MAX - nowUs ? INT64_MAX : nowUs + delayUs); in post()181 whenUs = getNowUs(); in post()185 while (it != mEventQueue.end() && (*it).mWhenUs <= whenUs) { in post()190 event.mWhenUs = whenUs; in post()207 int64_t whenUs; in postUnique() local210 whenUs = (delayUs > INT64_MAX - nowUs ? INT64_MAX : nowUs + delayUs); in postUnique()212 whenUs = getNowUs(); in postUnique()218 bool shouldAwakeLoop = mEventQueue.empty() || whenUs < mEventQueue.begin()->mWhenUs; in postUnique()231 while (i != mEventQueue.end() && i->mWhenUs <= whenUs) { in postUnique()[all …]
56 int64_t whenUs = mStartTimeUs + durationUs; in readAt() local58 if (whenUs > nowUs) { in readAt()59 usleep(whenUs - nowUs); in readAt()
104 int64_t whenUs = mFirstTimeUs + timeMs * 1000ll; in onPush() local106 (new AMessage(kWhatPush, this))->post(whenUs - nowUs); in onPush()