summaryrefslogtreecommitdiff
path: root/dnn/Disposable.cc
diff options
context:
space:
mode:
authorsc2000-11-28 14:52:16 +0000
committersc2000-11-28 14:52:16 +0000
commit3ee78810becfeeb3690468ac735b6ba20dc5c501 (patch)
tree4d2f3642e6ac53573a2721298dbc0c991216427b /dnn/Disposable.cc
parent7130702588fdc681f54f254bf378c07cd5392af7 (diff)
downloadivy-league-3ee78810becfeeb3690468ac735b6ba20dc5c501.zip
ivy-league-3ee78810becfeeb3690468ac735b6ba20dc5c501.tar.gz
ivy-league-3ee78810becfeeb3690468ac735b6ba20dc5c501.tar.bz2
ivy-league-3ee78810becfeeb3690468ac735b6ba20dc5c501.tar.xz
Integration into IvyLeague
Dnn -> Ivl Some class names changed, because of conflicts with previous Uch classes Imakefile is replaced with Makefile
Diffstat (limited to 'dnn/Disposable.cc')
-rwxr-xr-xdnn/Disposable.cc31
1 files changed, 15 insertions, 16 deletions
diff --git a/dnn/Disposable.cc b/dnn/Disposable.cc
index 4e8a03a..041931b 100755
--- a/dnn/Disposable.cc
+++ b/dnn/Disposable.cc
@@ -15,33 +15,32 @@
#include "Disposable.h"
#include "Loop.h"
-bool DnnDisposable::ClassInitialized = false;
-CcuInitializerFor<DnnBaseMultiplexer> DnnDisposable::Dependance;
-CcuInitializerFor<DnnDisposable> DnnDisposable::Initializer;
-CcuListOf<DnnDisposable> DnnDisposable::Garbage;
+bool IvlDisposable::ClassInitialized = false;
+IvlInitializerFor<IvlBaseMultiplexer> IvlDisposable::Dependance;
+IvlInitializerFor<IvlDisposable> IvlDisposable::Initializer;
+IvlListOf<IvlDisposable> IvlDisposable::Garbage;
void
-DnnDisposable :: ClassInit ()
+IvlDisposable :: ClassInit ()
{
if (!ClassInitialized) {
ClassInitialized = true;
- DnnBaseMultiplexer::AddGlobalHook (&DnnDisposable::DeleteGarbage, true);
+ IvlBaseMultiplexer::AddGlobalHook (&IvlDisposable::DeleteGarbage, true);
}
}
#if 0
void
-DnnDisposable :: ClassClose ()
+IvlDisposable :: ClassClose ()
{
- DnnBaseMultiplexer::RemoveGlobalHook (&DnnDisposable::DeleteGarbage);
+ IvlBaseMultiplexer::RemoveGlobalHook (&IvlDisposable::DeleteGarbage);
}
#endif
-
/*?
-\typ{DnnDisposable} objects are objects whose deletion is called in a safe
+\typ{IvlDisposable} objects are objects whose deletion is called in a safe
place in an asynchronous way.
-Instances of derived class of DnnDisposable which are to be deleted
+Instances of derived class of IvlDisposable which are to be deleted
asynchronously must be allocated only dynamically with new.
An instance is put into it's class garbage list (and thus deleted)
@@ -52,16 +51,16 @@ a deletion while in an unsafe state.
Typically this class is to be used by derivation of UchChannel
which can be deleted from within themselves after a call to \fun{HandleRead}.
?*/
-DnnDisposable :: DnnDisposable ()
+IvlDisposable :: IvlDisposable ()
{
}
-DnnDisposable :: ~DnnDisposable ()
+IvlDisposable :: ~IvlDisposable ()
{
}
void
-DnnDisposable :: Trash ()
+IvlDisposable :: Trash ()
{
Garbage.Append (this);
};
@@ -70,9 +69,9 @@ DnnDisposable :: Trash ()
Delete all the instances which are in the garbage list.
?*/
void
-DnnDisposable :: DeleteGarbage ()
+IvlDisposable :: DeleteGarbage ()
{
- DnnDisposable* d;
+ IvlDisposable* d;
while (d = Garbage.RemoveFirst ())
delete d;
}