MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / sleep_us

Function sleep_us

ut.h:515–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513/* portable sleep in microseconds (no interrupt handling now) */
514
515inline static void sleep_us( unsigned int nusecs )
516{
517 struct timeval tval;
518 tval.tv_sec=nusecs/1000000;
519 tval.tv_usec=nusecs%1000000;
520 select(0, NULL, NULL, NULL, &tval );
521}
522
523
524/* portable determination of max_path */

Callers 9

main_loopFunction · 0.85
mi_http_wait_async_replyFunction · 0.85
mi_json_wait_async_replyFunction · 0.85
m_usleepFunction · 0.85
resume_async_sleepFunction · 0.85
update_presentityFunction · 0.85
mi_open_reply_pipeFunction · 0.85
prepare_route_treeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected