MCPcopy Create free account
hub / github.com/sql-js/sql.js / _nanosleep

Function _nanosleep

js/sql-debug.js:5162–5171  ·  view source on GitHub ↗
(rqtp, rmtp)

Source from the content-addressed store, hash-verified

5160 return 0;
5161 }
5162 Module["_usleep"] = _usleep;function _nanosleep(rqtp, rmtp) {
5163 // int nanosleep(const struct timespec *rqtp, struct timespec *rmtp);
5164 var seconds = HEAP32[((rqtp)>>2)];
5165 var nanoseconds = HEAP32[(((rqtp)+(4))>>2)];
5166 if (rmtp !== 0) {
5167 HEAP32[((rmtp)>>2)]=0;
5168 HEAP32[(((rmtp)+(4))>>2)]=0;
5169 }
5170 return _usleep((seconds * 1e6) + (nanoseconds / 1000));
5171 }
5172
5173
5174

Callers 1

_sleepFunction · 0.70

Calls 1

_usleepFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…