mirror of
https://gitee.com/openharmony/distributeddatamgr_pasteboard
synced 2025-03-01 05:36:50 +00:00
commit
03ca8d3c28
@ -123,11 +123,14 @@ bool FuzzFfRTTimerSingleSetAndCancel(const uint8_t *rawData, size_t size)
|
||||
FFRTTask task = [&] {
|
||||
m /= 2;
|
||||
};
|
||||
|
||||
string timerId(reinterpret_cast<const char*>(rawData + pos), size - pos);
|
||||
FFRTTimer ffrtTimer;
|
||||
ffrtTimer.SetTimer(timerId, task);
|
||||
ffrtTimer.CancelTimer(timerId);
|
||||
static uint32_t thresHold = 1;
|
||||
if (thresHold <= 1) {
|
||||
string timerId = "TimerSingleSetAndCancelId";
|
||||
FFRTTimer ffrtTimer;
|
||||
ffrtTimer.SetTimer(timerId, task);
|
||||
ffrtTimer.CancelTimer(timerId);
|
||||
thresHold++;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user