summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-12-30 00:51:51 +0000
committerjxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-12-30 00:51:51 +0000
commit617979920499274317abee43a4980cc8fc712574 (patch)
treef116bba3be0e6e5bf591c4e1dd04bcd40df52156
parent4ce2d414eead71c085270b05810cd4418484584f (diff)
downloadATCD-617979920499274317abee43a4980cc8fc712574.tar.gz
Required modifications to accomodate the ACE_Filecache_Flag parameter.
-rw-r--r--ace/Filecache.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/ace/Filecache.cpp b/ace/Filecache.cpp
index 5e61de6afc4..c90161110b1 100644
--- a/ace/Filecache.cpp
+++ b/ace/Filecache.cpp
@@ -48,11 +48,11 @@ ACE_Filecache_Handle::ACE_Filecache_Handle (void)
this->init ();
}
-ACE_Filecache_Handle::ACE_Filecache_Handle (const char *filename, int mapit)
+ACE_Filecache_Handle::ACE_Filecache_Handle (const char *filename,
+ ACE_Filecache_Flag mapit)
: mapit_ (mapit)
{
this->init ();
-
// Fetch the file from the Virtual_Filesystem let the
// Virtual_Filesystem do the work of cache coherency.
@@ -63,7 +63,7 @@ ACE_Filecache_Handle::ACE_Filecache_Handle (const char *filename, int mapit)
ACE_Filecache_Handle::ACE_Filecache_Handle (const char *filename,
int size,
- int mapit)
+ ACE_Filecache_Flag mapit)
: mapit_ (mapit)
{
this->init ();
@@ -222,7 +222,7 @@ ACE_Filecache::insert_i (const char *filename,
if (this->hash_.find (filename, handle) == -1)
{
ACE_NEW_RETURN (handle,
- ACE_Filecache_Object (filename, filelock, mapit),
+ ACE_Filecache_Object (filename, filelock, 0, mapit),
0);
ACE_DEBUG ((LM_DEBUG, " (%t) CVF: creating %s\n", filename));
@@ -274,7 +274,7 @@ ACE_Filecache::update_i (const char *filename,
if (this->hash_.find (filename, handle) == -1)
{
ACE_NEW_RETURN (handle,
- ACE_Filecache_Object (filename, filelock, mapit),
+ ACE_Filecache_Object (filename, filelock, 0, mapit),
0);
ACE_DEBUG ((LM_DEBUG, " (%t) CVF: creating %s\n", filename));
@@ -292,7 +292,7 @@ ACE_Filecache::update_i (const char *filename,
handle = this->remove_i (filename);
ACE_NEW_RETURN (handle,
- ACE_Filecache_Object (filename, filelock, mapit),
+ ACE_Filecache_Object (filename, filelock, 0, mapit),
0);
ACE_DEBUG ((LM_DEBUG, " (%t) CVF: updating %s\n", filename));
@@ -456,8 +456,8 @@ ACE_Filecache_Object::ACE_Filecache_Object (void)
ACE_Filecache_Object::ACE_Filecache_Object (const char *filename,
ACE_SYNCH_RW_MUTEX &lock,
- int mapit,
- LPSECURITY_ATTRIBUTES sa)
+ LPSECURITY_ATTRIBUTES sa,
+ int mapit)
: stale_ (0),
sa_ (sa),
lock_ (lock)