Beispiel #1
0
ret_t
cherokee_spawner_free (void)
{
    CHEROKEE_MUTEX_DESTROY (&spawning_mutex);

    cherokee_shm_mrproper (&cherokee_spawn_shared);
    return ret_ok;
}
ret_t
cherokee_handler_proxy_hosts_mrproper (cherokee_handler_proxy_hosts_t *hosts)
{
	CHEROKEE_MUTEX_DESTROY (&hosts->hosts_mutex);
	cherokee_avl_mrproper (&hosts->hosts, poll_free);
	cherokee_buffer_mrproper (&hosts->tmp);

	return ret_ok;
}
Beispiel #3
0
static void
priv_free (priv_t *priv)
{
	if (priv == NULL)
		return;

	CHEROKEE_MUTEX_DESTROY (&priv->mutex);
	free (priv);
}
ret_t
cherokee_handler_proxy_poll_free (cherokee_handler_proxy_poll_t *poll)
{
	cherokee_list_t *i, *j;

	list_for_each_safe (i, j, &poll->active) {
	}

	list_for_each_safe (i, j, &poll->reuse) {
	}

	CHEROKEE_MUTEX_DESTROY (&poll->mutex);
	return ret_ok;
}
Beispiel #5
0
ret_t
cherokee_logger_writer_free (cherokee_logger_writer_t *writer)
{
	logger_writer_close_file (writer);

	cherokee_buffer_mrproper (&writer->buffer);
	cherokee_buffer_mrproper (&writer->filename);
	cherokee_buffer_mrproper (&writer->command);

	CHEROKEE_MUTEX_DESTROY (&PRIV(writer)->mutex);

	free (writer->priv);
	free (writer);

	return ret_ok;
}
Beispiel #6
0
/* Virtual method hiding layer
 */
ret_t
cherokee_logger_free (cherokee_logger_t *logger)
{
	CHEROKEE_MUTEX_DESTROY (&PRIV(logger)->mutex);

	if (MODULE(logger)->free) {
		MODULE(logger)->free (logger);
	}

	if (logger->priv) {
		cherokee_x_real_ip_mrproper (&logger->priv->x_real_ip);
		free (logger->priv);
	}

	free (logger);
	return ret_ok;
}
Beispiel #7
0
static ret_t
free_cb (cherokee_cache_entry_t *entry)
{
	CHEROKEE_MUTEX_DESTROY (&PRIV(entry)->parent_lock);
	return ret_ok;
}