MCPcopy Create free account
hub / github.com/PiSCSI/piscsi / Sleep

Method Sleep

cpp/controllers/scsi_controller.cpp:980–986  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

978}
979
980void ScsiController::Sleep()
981{
982 if (const uint32_t time = SysTimer::GetTimerLow() - execstart; time < MIN_EXEC_TIME) {
983 SysTimer::SleepUsec(MIN_EXEC_TIME - time);
984 }
985 execstart = 0;
986}
987
988unsigned int ScsiController::MIN_EXEC_TIME = 50;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected