Home
last modified time | relevance | path

Searched refs:fds_count (Results 1 - 20 of 20) sorted by relevance

/third_party/libwebsockets/lib/plat/windows/
H A Dwindows-service.c40 for (n = 0; n < (int)pt->fds_count; n++) { in _lws_plat_service_forced_tsi()
44 unsigned int fds_count = pt->fds_count; in _lws_plat_service_forced_tsi() local
48 /* if something closed, fds_count will change, retry this slot */ in _lws_plat_service_forced_tsi()
49 if (pt->fds_count != fds_count) in _lws_plat_service_forced_tsi()
98 for (i = 0; i < pt->fds_count; ++i) { in _lws_plat_service_tsi()
158 // lwsl_notice("%s: in %dms, count %d\n", __func__, (int)(timeout_us / 1000), pt->fds_count); in _lws_plat_service_tsi()
159 // for (n = 0; n < (int)pt->fds_count; n++) in _lws_plat_service_tsi()
161 int d = WSAPoll((WSAPOLLFD *)&pt->fds[0], pt->fds_count, (in in _lws_plat_service_tsi()
[all...]
H A Dwindows-sockets.c210 pt->fds[pt->fds_count].events |= LWS_POLLIN; in lws_plat_insert_socket_into_fds()
217 pt->fds[pt->fds_count++].revents = 0; in lws_plat_insert_socket_into_fds()
219 lws_plat_change_pollfd(context, wsi, &pt->fds[pt->fds_count - 1]); in lws_plat_insert_socket_into_fds()
228 pt->fds_count--; in lws_plat_delete_socket_from_fds()
H A Dwindows-init.c117 pt->fds_count = 0; in lws_plat_init()
H A Dwindows-spawn.c74 if ((unsigned int)context->pt[tsi].fds_count == in lws_create_basic_wsi()
/third_party/libwebsockets/lib/core-net/
H A Dpollfd.c72 assert(wsi->position_in_fds_table < (int)pt->fds_count); in _lws_change_pollfd()
253 lwsl_cx_warn(pt->context, "fds_count %u, %s", pt->fds_count, s); in __dump_fds()
255 for (n = 0; n < pt->fds_count; n++) { in __dump_fds()
281 wsi->tsi, wsi->desc.sockfd, pt->fds_count); in __insert_wsi_socket_into_fds()
283 if ((unsigned int)pt->fds_count >= context->fd_limit_per_thread) { in __insert_wsi_socket_into_fds()
319 wsi->position_in_fds_table = (int)pt->fds_count; in __insert_wsi_socket_into_fds()
324 pa.events = pt->fds[pt->fds_count].events; in __insert_wsi_socket_into_fds()
339 if ((unsigned int)pt->fds_count == context->fd_limit_per_thread - 1) in __insert_wsi_socket_into_fds()
395 assert(m == LWS_NO_FDS_POS || (m >= 0 && (unsigned int)m < pt->fds_count)); in __remove_wsi_socket_from_fds()
[all...]
H A Dadopt.c34 lwsl_cx_debug(context, "%d %d\n", context->pt[n].fds_count, in lws_get_idlest_tsi()
36 if ((unsigned int)context->pt[n].fds_count != in lws_get_idlest_tsi()
38 (unsigned int)context->pt[n].fds_count < lowest) { in lws_get_idlest_tsi()
39 lowest = context->pt[n].fds_count; in lws_get_idlest_tsi()
H A Droute.c362 for (n = 0; n < pt->fds_count; n++) { in _lws_route_pt_close_unroutable()
388 for (n = 0; n < pt->fds_count; n++) { in _lws_route_pt_close_route_users()
H A Dwsi.c173 for (n = 0; n < pt->fds_count; n++) { in lws_callback_all_protocol()
215 for (n = 0; n < pt->fds_count; n++) { in lws_callback_all_protocol_vhost_args()
479 for (n = 0; n < pt->fds_count; n++) { in lws_rx_flow_allow_all_protocol()
H A Dclose.c261 wsi->a.context->pt[(int)wsi->tsi].fds_count); in __lws_free_wsi()
H A Dvhost.c1224 while (n < pt->fds_count) {
H A Dprivate-lib-core-net.h364 unsigned int fds_count; member
/third_party/libwebsockets/lib/plat/optee/
H A Dnetwork.c140 n = poll(pt->fds, pt->fds_count, timeout_us / LWS_US_PER_MS); in _lws_plat_service_tsi()
165 for (n = 0; n < (int)pt->fds_count && c; n++) { in _lws_plat_service_tsi()
226 pt->fds[pt->fds_count++].revents = 0; in lws_plat_insert_socket_into_fds()
235 pt->fds_count--; in lws_plat_delete_socket_from_fds()
/third_party/libwebsockets/lib/plat/freertos/
H A Dfreertos-fds.c32 pt->fds[pt->fds_count++].revents = 0; in lws_plat_insert_socket_into_fds()
41 pt->fds_count--; in lws_plat_delete_socket_from_fds()
H A Dfreertos-service.c128 // n = poll(pt->fds, pt->fds_count, timeout_ms); in _lws_plat_service_tsi()
138 for (n = 0; n < (int)pt->fds_count; n++) { in _lws_plat_service_tsi()
156 for (m = 0; m < (int)pt->fds_count; m++) { in _lws_plat_service_tsi()
197 for (n = 0; n < (int)pt->fds_count && c; n++) { in _lws_plat_service_tsi()
/third_party/libwebsockets/lib/plat/unix/
H A Dunix-service.c45 for (n = 0; n < (int)pt->fds_count; n++) { in _lws_plat_service_forced_tsi()
152 n = poll(pt->fds, pt->fds_count, (int)timeout_us /* ms now */ ); in _lws_plat_service_tsi()
H A Dunix-fds.c243 pt->fds[pt->fds_count++].revents = 0; in lws_plat_insert_socket_into_fds()
256 pt->fds_count--; in lws_plat_delete_socket_from_fds()
H A Dunix-init.c55 m = m | (int)pt->fds_count; in lws_sul_plat_unix()
H A Dunix-spawn.c80 if ((unsigned int)pt->fds_count == context->fd_limit_per_thread - 1) { in lws_create_stdwsi()
/third_party/libwebsockets/lib/roles/listen/
H A Dops-listen.c168 } while (pt->fds_count < context->fd_limit_per_thread - 1 && in rops_handle_POLLIN_listen()
/third_party/libwebsockets/lib/core/
H A Dcontext.c1858 while (pt->fds_count) { in lws_context_destroy()

Completed in 27 milliseconds