Пример #1
0
void exit_shogun()
{
#ifdef TRACE_MEMORY_ALLOCS
    list_memory_allocs();
    shogun::CMap<void*, shogun::MemoryBlock>* mallocs=sg_mallocs;
    sg_mallocs=NULL;
    SG_UNREF(mallocs);
#endif
    sg_print_message=NULL;
    sg_print_warning=NULL;
    sg_print_error=NULL;
    sg_cancel_computations=NULL;

    SG_UNREF(sg_math);
    SG_UNREF(sg_version);
    SG_UNREF(sg_parallel);
    SG_UNREF(sg_io);

}
Пример #2
0
	void exit_shogun()
	{
#ifdef TRACE_MEMORY_ALLOCS
		list_memory_allocs();
		shogun::CMap<void*, shogun::MemoryBlock>* mallocs=sg_mallocs;
		sg_mallocs=NULL;
		SG_UNREF(mallocs);
#endif
		sg_print_message=NULL;
		sg_print_warning=NULL;
		sg_print_error=NULL;
		sg_cancel_computations=NULL;

		SG_UNREF(sg_rand);
		SG_UNREF(sg_math);
		SG_UNREF(sg_version);
		SG_UNREF(sg_parallel);
		SG_UNREF(sg_io);

#ifdef HAVE_PROTOBUF
		::google::protobuf::ShutdownProtobufLibrary();
#endif
	}