diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2003-12-02 12:06:10 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2003-12-02 12:06:10 +0000 |
commit | 5ca728fefc94a9d71480b2f7e77c7160c4ed6b48 (patch) | |
tree | 4968266576d3426ee0fe333ae5fce4e381bfea11 /apps | |
parent | 25544a14ae601d01cdc9ad3ad994f3e44b4272dc (diff) | |
download | ATCD-5ca728fefc94a9d71480b2f7e77c7160c4ed6b48.tar.gz |
ChangeLogTag: Tue Dec 2 12:05:13 UTC 2003 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/JAWS2/JAWS/Cache_Manager_T.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/apps/JAWS2/JAWS/Cache_Manager_T.cpp b/apps/JAWS2/JAWS/Cache_Manager_T.cpp index 1842077d07c..a5d0d3278dc 100644 --- a/apps/JAWS2/JAWS/Cache_Manager_T.cpp +++ b/apps/JAWS2/JAWS/Cache_Manager_T.cpp @@ -233,7 +233,7 @@ JAWS_Cache_Manager<KEY,FACTORY,HASH_FUNC,EQ_FUNC> if (result == -1) { if (size/1024 <= this->maxobjsize_) - std::cerr << "MAKE failed. Bummer!" << std::endl; + cerr << "MAKE failed. Bummer!" << endl; else this->DROP_i (obj); return -1; @@ -247,7 +247,7 @@ JAWS_Cache_Manager<KEY,FACTORY,HASH_FUNC,EQ_FUNC> result = this->hash_->rebind (key, obj, old_key, old_obj); if (result == -1) { - std::cerr << "*** hash bind error: " << key << std::endl; + cerr << "*** hash bind error: " << key << endl; obj->release (); this->DROP_i (obj); return -1; @@ -263,7 +263,7 @@ JAWS_Cache_Manager<KEY,FACTORY,HASH_FUNC,EQ_FUNC> result = this->heap_->insert (key, obj); if (result == -1) { - std::cerr << "*** heap insertion error: " << key << std::endl; + cerr << "*** heap insertion error: " << key << endl; this->hash_->unbind (key); obj->release (); this->DROP_i (obj); @@ -285,19 +285,19 @@ JAWS_Cache_Manager<KEY,FACTORY,HASH_FUNC,EQ_FUNC> JAWS_Cache_Object *temp_object; #ifdef ENTERA_VERBOSE_TRACE - std::cerr << "*** flush key unbinding: " << key << std::endl; + cerr << "*** flush key unbinding: " << key << endl; #endif int result = this->hash_->unbind (key, temp_object); if (result == 0) { this->waterlevel_ -= temp_object->size (); if (this->heap_->remove (temp_object->heap_item ()) == -1) - std::cerr << "*** flush key heap remove failed: " << std::endl; + cerr << "*** flush key heap remove failed: " << endl; temp_object->release (); this->DROP_i (temp_object); } else - std::cerr << "*** flush key hash unbind failed: " << key << std::endl; + cerr << "*** flush key hash unbind failed: " << key << endl; return result; } @@ -313,11 +313,11 @@ JAWS_Cache_Manager<KEY,FACTORY,HASH_FUNC,EQ_FUNC> if (result == 0) { #ifdef ENTERA_VERBOSE_TRACE - std::cerr << "*** flush unbinding: " << temp_key << std::endl; + cerr << "*** flush unbinding: " << temp_key << endl; #endif result = this->hash_->unbind (temp_key); if (result == -1) - std::cerr << "*** flush hash unbind failed: " << temp_key << std::endl; + cerr << "*** flush hash unbind failed: " << temp_key << endl; result = 0; this->waterlevel_ -= temp_object->size (); temp_object->release (); @@ -394,7 +394,7 @@ JAWS_Cache_Manager<KEY,FACTORY,HASH_FUNC,EQ_FUNC> { // Don't bother to cache this. - std::cerr << "*** " << size << " is too small to cache" << std::endl; + cerr << "*** " << size << " is too small to cache" << endl; return -1; } @@ -405,7 +405,7 @@ JAWS_Cache_Manager<KEY,FACTORY,HASH_FUNC,EQ_FUNC> { if (this->FLUSH_i () == -1) { - std::cerr << "*** cache flooded, flush error" << endl; + cerr << "*** cache flooded, flush error" << endl; return -1; } } @@ -415,10 +415,10 @@ JAWS_Cache_Manager<KEY,FACTORY,HASH_FUNC,EQ_FUNC> // make sure heap has enough room if (this->heap_->is_full ()) { - std::cerr << "*** heap full, flushing" << std::endl; + cerr << "*** heap full, flushing" << endl; if (this->FLUSH_i () == -1) { - std::cerr << "*** heap full, flush error" << std::endl; + cerr << "*** heap full, flush error" << endl; return -1; } } @@ -426,7 +426,7 @@ JAWS_Cache_Manager<KEY,FACTORY,HASH_FUNC,EQ_FUNC> obj = this->factory_->create (data, size); if (this->TAKE (obj) == -1) { - std::cerr << "*** take error" << std::endl; + cerr << "*** take error" << endl; this->factory_->destroy (obj); obj = 0; return -1; @@ -464,20 +464,20 @@ JAWS_Cache_Manager<KEY,FACTORY,HASH_FUNC,EQ_FUNC> { KEY *key = (KEY *) obj->internal (); #ifdef ENTERA_VERBOSE_TRACE - std::cerr << "*** drop large unbinding: " << key << std::endl; + cerr << "*** drop large unbinding: " << key << endl; #endif result = this->hash_->unbind (*key); if (result == 0) { if (this->heap_->remove (obj->heap_item ()) == -1) - std::cerr << "*** drop large heap remove failed: " << std::endl; + cerr << "*** drop large heap remove failed: " << endl; this->factory_->destroy (obj); delete key; obj = 0; result = 1; } else - std::cerr << "*** drop large hash unbind failed: " << key << std::endl; + cerr << "*** drop large hash unbind failed: " << key << endl; } } return result; |