example/thread-pool/psi.c
static void
cont_data_destroy(ContData * data)
{
  INKDebug(DBG_TAG, "Destroying continuation data");
  if (data) {
    INKAssert(data->magic == MAGIC_ALIVE);
    if (data->output_reader) {
      INKIOBufferReaderFree(data->output_reader);
      data->output_reader = NULL;
    }
    if (data->output_buffer) {
      INKIOBufferDestroy(data->output_buffer);
      data->output_buffer = NULL;
    }
    if (data->psi_reader) {
      INKIOBufferReaderFree(data->psi_reader);
      data->psi_reader = NULL;
    }
    if (data->psi_buffer) {
      INKIOBufferDestroy(data->psi_buffer);
      data->psi_buffer = NULL;
    }
    data->magic = MAGIC_DEAD;
    INKfree(data);
  }
}
/*-------------------------------------------------------------------------
  cont_data_destroy
  Deallocate ContData structure associated to a transaction

  Input:
    data   structure to deallocate
  Output:
  Return Value:
    none
  -------------------------------------------------------------------------*/
cont_data_destroy
Deallocate ContData structure associated to a transaction

data   structure to deallocate
Output:
Return Value:
none
cont_data_destroy Deallocate ContData structure associated to a transaction data structure to deallocate Output : Return Value : none
static void
cont_data_destroy(ContData * data)
{
  INKDebug(DBG_TAG, "Destroying continuation data");
  if (data) {
    INKAssert(data->magic == MAGIC_ALIVE);
    if (data->output_reader) {
      INKIOBufferReaderFree(data->output_reader);
      data->output_reader = NULL;
    }
    if (data->output_buffer) {
      INKIOBufferDestroy(data->output_buffer);
      data->output_buffer = NULL;
    }
    if (data->psi_reader) {
      INKIOBufferReaderFree(data->psi_reader);
      data->psi_reader = NULL;
    }
    if (data->psi_buffer) {
      INKIOBufferDestroy(data->psi_buffer);
      data->psi_buffer = NULL;
    }
    data->magic = MAGIC_DEAD;
    INKfree(data);
  }
}
static void cont_data_destroy ( ContData * data ) { INKDebug ( DBG_TAG , " " ) ; if ( data ) { INKAssert ( data -> magic == MAGIC_ALIVE ) ; if ( data -> output_reader ) { INKIOBufferReaderFree ( data -> output_reader ) ; data -> output_reader = NULL ; } if ( data -> output_buffer ) { INKIOBufferDestroy ( data -> output_buffer ) ; data -> output_buffer = NULL ; } if ( data -> psi_reader ) { INKIOBufferReaderFree ( data -> psi_reader ) ; data -> psi_reader = NULL ; } if ( data -> psi_buffer ) { INKIOBufferDestroy ( data -> psi_buffer ) ; data -> psi_buffer = NULL ; } data -> magic = MAGIC_DEAD ; INKfree ( data ) ; } }
cont_data_destroy
Deallocate ContData structure associated to a transaction
cont_data_destroy Deallocate ContData structure associated to a transaction