MCPcopy Create free account
hub / github.com/HumbleNet/HumbleNet / wait

Function wait

tests/test_webrtc.cpp:10–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8static internal_context_t* context;
9
10bool wait( int* pms ) {
11
12 int ms = *pms;
13
14 struct timeval tv;
15 tv.tv_sec = ms / 1000;
16 tv.tv_usec = 1000 * (ms % 1000);
17
18 poll_select( 0, NULL, NULL, NULL, &tv );
19
20 *pms = tv.tv_sec * 1000 + tv.tv_usec / 1000;
21
22 return false;
23}
24
25bool wait( int ms ) {
26 return wait( &ms );

Callers 4

runMethod · 0.85
runMethod · 0.85
run_message_testFunction · 0.85
run_webrtc_data_testFunction · 0.85

Calls 1

poll_selectFunction · 0.85

Tested by

no test coverage detected