ext/iodine/websockets.c
/* *****************************************************************************
Create/Destroy the websocket subscription objects
***************************************************************************** */
Create/Destroy the websocket subscription objects
Create / Destroy the websocket subscription objects
static inline void clear_subscriptions(ws_s *ws) {
  fio_lock(&ws->sub_lock);
  while (fio_ls_any(&ws->subscriptions)) {
    fio_unsubscribe(fio_ls_pop(&ws->subscriptions));
  }
  fio_unlock(&ws->sub_lock);
}
static inline void clear_subscriptions ( ws_s * ws ) { fio_lock ( & ws -> sub_lock ) ; while ( fio_ls_any ( & ws -> subscriptions ) ) { fio_unsubscribe ( fio_ls_pop ( & ws -> subscriptions ) ) ; } fio_unlock ( & ws -> sub_lock ) ; }
Create/Destroy the websocket subscription objects
Create / Destroy the websocket subscription objects