ext/iodine/fio.c
/** Creates / finds a filter channel, adds a reference count and locks it. */
Creates / finds a filter channel, adds a reference count and locks it.
Creates / finds a filter channel adds a reference count and locks it .
static channel_s *fio_filter_dup_lock(uint32_t filter) {
  channel_s ch = (channel_s){
      .name = (char *)&filter,
      .name_len = (sizeof(filter)),
      .parent = &fio_postoffice.filters,
      .ref = 8, 
  };
  return fio_filter_dup_lock_internal(&ch, filter, &fio_postoffice.filters);
}
static channel_s * fio_filter_dup_lock ( uint32_t filter ) { channel_s ch = ( channel_s ) { . name = ( char * ) & filter , . name_len = ( sizeof ( filter ) ) , . parent = & fio_postoffice . filters , . ref = 8 , } ; return fio_filter_dup_lock_internal ( & ch , filter , & fio_postoffice . filters ) ; }
Creates / finds a filter channel, adds a reference count and locks it.
Creates / finds a filter channel adds a reference count and locks it .
/* avoid freeing stack memory */