mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 16:23:46 +08:00
Replace usleep with util::sleep_for (#19643)
* replace usleep with sleep_for * sleep microseconds * sleep nanoseconds * Trigger Build old-commit-hash: c1cf0882bd4e0fce5e1a581536f6a0e7afb640e6
This commit is contained in:
@@ -291,7 +291,7 @@ int Params::read_db_value_blocking(const char* key, char** value, size_t* value_
|
||||
if (result == 0) {
|
||||
break;
|
||||
} else {
|
||||
usleep(100000); // 0.1 s
|
||||
util::sleep_for(100); // 0.1 s
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user