MCPcopy Create free account
hub / github.com/defold/defold / timeout_init

Function timeout_init

engine/script/src/luasocket/timeout.c:48–51  ·  view source on GitHub ↗

=========================================================================*\ * Exported functions. \*=========================================================================*/ -------------------------------------------------------------------------*\ * Initialize structure \*-------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

46* Initialize structure
47\*-------------------------------------------------------------------------*/
48void timeout_init(p_timeout tm, double block, double total) {
49 tm->block = block;
50 tm->total = total;
51}
52
53/*-------------------------------------------------------------------------*\
54* Determines how much time we have left for the next system call,

Callers 8

global_selectFunction · 0.85
meth_acceptFunction · 0.85
tcp_createFunction · 0.85
global_connectFunction · 0.85
meth_acceptFunction · 0.85
global_createFunction · 0.85
global_createFunction · 0.85
udp_createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected