• Home
  • Raw
  • Download

Lines Matching refs:pt

32 	struct lws_context_per_thread *pt = &context->pt[0];  in lws_stats_get()  local
37 return pt->lws_stats[index]; in lws_stats_get()
74 struct lws_context_per_thread *pt = &context->pt[tsi]; in quantify() local
77 lws_pt_stats_lock(pt); in quantify()
78 u = pt->lws_stats[idx]; in quantify()
84 u1 = pt->lws_stats[LWSSTATS_C_SSL_CONNECTIONS_ACCEPTED]; in quantify()
89 u1 = pt->lws_stats[LWSSTATS_C_SSL_CONNS_HAD_RX]; in quantify()
94 u1 = pt->lws_stats[LWSSTATS_C_WRITEABLE_CB]; in quantify()
99 lws_pt_stats_unlock(pt); in quantify()
138 struct lws_context_per_thread *pt = &context->pt[m]; in lws_stats_log_dump() local
140 u |= pt->lws_stats[n]; in lws_stats_log_dump()
166 struct lws_context_per_thread *pt = in lws_stats_log_dump() local
167 &context->pt[(int)v->lserv_wsi->tsi]; in lws_stats_log_dump()
170 pfd = &pt->fds[v->lserv_wsi->position_in_fds_table]; in lws_stats_log_dump()
181 struct lws_context_per_thread *pt = &context->pt[n]; in lws_stats_log_dump() local
187 lws_pt_lock(pt, __func__); in lws_stats_log_dump()
190 pt->http.ah_count_in_use, in lws_stats_log_dump()
193 wl = pt->http.ah_wait_list; in lws_stats_log_dump()
200 pt->http.ah_wait_list_length, m); in lws_stats_log_dump()
202 lws_pt_unlock(pt); in lws_stats_log_dump()
251 lws_stats_bump(struct lws_context_per_thread *pt, int i, uint64_t bump) in lws_stats_bump() argument
253 lws_pt_stats_lock(pt); in lws_stats_bump()
254 pt->lws_stats[i] += bump; in lws_stats_bump()
256 pt->updated = 1; in lws_stats_bump()
257 pt->context->updated = 1; in lws_stats_bump()
259 lws_pt_stats_unlock(pt); in lws_stats_bump()
263 lws_stats_max(struct lws_context_per_thread *pt, int index, uint64_t val) in lws_stats_max() argument
265 lws_pt_stats_lock(pt); in lws_stats_max()
266 if (val > pt->lws_stats[index]) { in lws_stats_max()
267 pt->lws_stats[index] = val; in lws_stats_max()
268 pt->updated = 1; in lws_stats_max()
269 pt->context->updated = 1; in lws_stats_max()
271 lws_pt_stats_unlock(pt); in lws_stats_max()