[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog libbase/GC.cpp
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog libbase/GC.cpp |
Date: |
Fri, 15 Jun 2007 18:16:32 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/06/15 18:16:32
Modified files:
. : ChangeLog
Added files:
libbase : GC.cpp
Log message:
Forgot to commit this one
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3547&r2=1.3548
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/GC.cpp?cvsroot=gnash&rev=1.1
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3547
retrieving revision 1.3548
diff -u -b -r1.3547 -r1.3548
--- ChangeLog 15 Jun 2007 15:00:25 -0000 1.3547
+++ ChangeLog 15 Jun 2007 18:16:31 -0000 1.3548
@@ -1,4 +1,6 @@
- * gui/Player.cpp, libbase/GC.h, libbase/Makefile.am,
+2007-06-14 Sandro Santilli <address@hidden>
+
+ * gui/Player.cpp, libbase/GC.{h,cpp}, libbase/Makefile.am,
libbase/ref_counted.h, libbase/smart_ptr.h,
plugin/klash/klash.cpp, plugin/win32/plugin.cpp,
server/GetterSetter.cpp, server/GetterSetter.h,
Index: libbase/GC.cpp
===================================================================
RCS file: libbase/GC.cpp
diff -N libbase/GC.cpp
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ libbase/GC.cpp 15 Jun 2007 18:16:32 -0000 1.1
@@ -0,0 +1,57 @@
+// GC.h: Garbage Collector, for Gnash
+//
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+/* $Id: GC.cpp,v 1.1 2007/06/15 18:16:32 strk Exp $ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "GC.h"
+
+
+namespace gnash {
+
+GC* GC::_singleton = NULL;
+
+GC&
+GC::init(GcRoot& root)
+{
+ assert(!_singleton);
+ _singleton = new GC(root);
+ return *_singleton;
+}
+
+GC&
+GC::get()
+{
+ assert(_singleton);
+ return *_singleton;
+}
+
+void
+GC::cleanup()
+{
+ assert(_singleton);
+ delete _singleton;
+ _singleton = NULL;
+}
+
+} // end of namespace gnash
+
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash ChangeLog libbase/GC.cpp,
Sandro Santilli <=