X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fgarbage.h;h=8cf8306ee3b54b79140815703dbe55adf41f9436;hb=21c2e6b36d6a96c2f662a89459d607b5a387f4eb;hp=bc39e40ff5e3fb4b23a667e8b32b3ae6760e55c9;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/garbage.h b/cinelerra-5.1/cinelerra/garbage.h index bc39e40f..8cf8306e 100644 --- a/cinelerra-5.1/cinelerra/garbage.h +++ b/cinelerra-5.1/cinelerra/garbage.h @@ -2,21 +2,21 @@ /* * CINELERRA * Copyright (C) 2008 Adam Williams - * + * * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * + * */ #ifndef GARBAGE_H @@ -29,7 +29,7 @@ // Garbage collection // The objects inherit from GarbageObject. -// The constructor sets users to 1 so the caller must call +// The constructor sets users to 1 so the caller must call // Garbage::remove_user when it's done. // Other users of the object must call add_user to increment the user count // and Garbage::remove_user to decriment the user count. @@ -56,7 +56,7 @@ public: // Called when user begins to use the object. void add_user(); int remove_user(); - + int users; int deleted; char *title; @@ -70,20 +70,20 @@ public: // public: // Garbage(); // ~Garbage(); -// +// // // Called by GarbageObject constructor // // void add_object(GarbageObject *ptr); -// +// // // Called by user to delete the object. // // Flags the object for deletion as soon as it has no users. // static void delete_object(GarbageObject *ptr); -// -// +// +// // // Called by remove_user and delete_object // // static void remove_expired(); // Mutex *lock; // // ArrayList objects; -// +// // // Global garbage collector // static Garbage *garbage; // };