ext/iodine/fio.c
/** Finds a pubsub channel, increasing it's reference count if it exists. */
Finds a pubsub channel, increasing it's reference count if it exists.
Finds a pubsub channel increasing it ' s reference count if it exists .
static channel_s *fio_channel_find_dup(fio_str_info_s name) {
  channel_s tmp = {.name = name.data, .name_len = name.len};
  uint64_t hashed_name = FIO_HASH_FN(
      name.data, name.len, &fio_postoffice.pubsub, &fio_postoffice.pubsub);
  channel_s *ch =
      fio_channel_find_dup_internal(&tmp, hashed_name, &fio_postoffice.pubsub);
  return ch;
}
static channel_s * fio_channel_find_dup ( fio_str_info_s name ) { channel_s tmp = { . name = name . data , . name_len = name . len } ; uint64_t hashed_name = FIO_HASH_FN ( name . data , name . len , & fio_postoffice . pubsub , & fio_postoffice . pubsub ) ; channel_s * ch = fio_channel_find_dup_internal ( & tmp , hashed_name , & fio_postoffice . pubsub ) ; return ch ; }
Finds a pubsub channel, increasing it's reference count if it exists.
Finds a pubsub channel increasing it ' s reference count if it exists .