⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 thr_core.txt

📁 Libnet is a cross-platform library aimed at game developers. It has an abstract high level API, whic
💻 TXT
字号:
Thread-safeness of core library routines========================================*** Initialisation:  * net_init  * net_register_driver  * net_loadconfigThese functions must be called in this order.  Calls must not overlap.`net_register_driver' may be called as many times as you like.*** Shutdown:  * net_shutdownThis must occur last of all, and must not overlap any other call.*** Driver manipulation:  * net_getdrivernames  * net_driver_classThese functions are thread-safe.  * net_detectdriver  * net_detectdrivers  * net_initdriver  * net_initdriversThese functions are not thread-safe -- the return values of some ofthese functions are clobbered by further calls, and Libnet keeps trackof which drivers are detected or initialised in an unsafe way.*** Driver lists:  * net_driverlist_*These functions are thread-safe, but only one thread may use aparticular driver list at a time.*** Conn/channel creation/destruction functions:  * net_openchannel  * net_destroychannel  * net_openconn  * net_destroyconnCalls to these functions on different channels/conns may overlap.*** Conn/channel manipulation functions:  * net_fixupaddress_channel  * net_assigntarget  * net_getlocaladdress  * net_send  * net_receive  * net_query  * net_channel_driver  * net_fixupaddress_conn  * net_connect  * net_poll_connect  * net_listen  * net_poll_listen  * net_connect_wait_time  * net_connect_wait_cb  * net_connect_wait_cb_time  * net_send_rdm  * net_receive_rdm  * net_query_rdm  * net_ignore_rdm  * net_conn_stats  * net_getpeer  * net_conn_driverThese functions are essentially thread-safe, but two operations on thesame conn/channel must not overlap.There may be threading problems within the drivers or the low-levelimplementations they chain to.*** Callback functions  * net_set_timer_funcThis must be called before `net_init', if at all.  The callback should be thread-safe, but may rely on the first call being unthreaded.  * net_set_mutex_funcsThis must be called before `net_init', if at all.  All callbacks must be thread-safe.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -