MCPcopy Create free account
hub / github.com/Tencent/UnLua / timeout_init

Function timeout_init

Plugins/UnLuaExtensions/LuaSocket/Source/src/timeout.cpp:47–50  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 9

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

Calls

no outgoing calls

Tested by

no test coverage detected