Lines Matching refs:ptpriv
249 struct lws_pt_eventlibs_sdevent *ptpriv = pt_to_priv_sd(pt); in init_pt_sd() local
253 ptpriv->pt = pt; in init_pt_sd()
256 if (!ptpriv->io_loop) { in init_pt_sd()
269 ptpriv->io_loop = loop; in init_pt_sd()
282 &ptpriv->sultimer, in init_pt_sd()
292 &ptpriv->idletimer, in init_pt_sd()
300 sd_event_source_set_enabled(ptpriv->idletimer, SD_EVENT_ON); in init_pt_sd()
302 if (0 > sd_event_source_set_priority(ptpriv->idletimer, in init_pt_sd()
362 struct lws_pt_eventlibs_sdevent *ptpriv = pt_to_priv_sd(pt); in run_pt_sd() local
364 if (ptpriv->io_loop) in run_pt_sd()
365 sd_event_run(ptpriv->io_loop, (uint64_t) -1); in run_pt_sd()
382 struct lws_pt_eventlibs_sdevent *ptpriv = pt_to_priv_sd(pt); in destroy_pt_sd() local
386 if (ptpriv->sultimer) { in destroy_pt_sd()
387 sd_event_source_set_enabled(ptpriv->sultimer, in destroy_pt_sd()
389 sd_event_source_unref(ptpriv->sultimer); in destroy_pt_sd()
390 ptpriv->sultimer = NULL; in destroy_pt_sd()
393 if (ptpriv->idletimer) { in destroy_pt_sd()
394 sd_event_source_set_enabled(ptpriv->idletimer, in destroy_pt_sd()
396 sd_event_source_unref(ptpriv->idletimer); in destroy_pt_sd()
397 ptpriv->idletimer = NULL; in destroy_pt_sd()
400 if (ptpriv->io_loop) { in destroy_pt_sd()
401 sd_event_unref(ptpriv->io_loop); in destroy_pt_sd()
402 ptpriv->io_loop = NULL; in destroy_pt_sd()