diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
commit | c44379cc7d9c7aa113989237ab0f56db12aa5219 (patch) | |
tree | 66a84b20d47f2269d8bdc6e0323f338763424d3a /ACE/ace/Pagefile_Memory_Pool.inl | |
parent | 3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (diff) | |
download | ATCD-c44379cc7d9c7aa113989237ab0f56db12aa5219.tar.gz |
Repo restructuring
Diffstat (limited to 'ACE/ace/Pagefile_Memory_Pool.inl')
-rw-r--r-- | ACE/ace/Pagefile_Memory_Pool.inl | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/ACE/ace/Pagefile_Memory_Pool.inl b/ACE/ace/Pagefile_Memory_Pool.inl new file mode 100644 index 00000000000..cf54da23f29 --- /dev/null +++ b/ACE/ace/Pagefile_Memory_Pool.inl @@ -0,0 +1,54 @@ +// -*- C++ -*- +// +// $Id$ + +#if defined (ACE_WIN32) + +ACE_BEGIN_VERSIONED_NAMESPACE_DECL + +ACE_INLINE size_t +ACE_Pagefile_Memory_Pool::round_to_chunk_size (size_t nbytes) +{ + return (nbytes + ACE_DEFAULT_PAGEFILE_POOL_CHUNK - 1) + & (~(ACE_DEFAULT_PAGEFILE_POOL_CHUNK - 1)); +} + +ACE_INLINE size_t +ACE_Pagefile_Memory_Pool::round_to_page_size (size_t nbytes) +{ + return ACE::round_to_pagesize (static_cast<off_t> (nbytes)); +} + +ACE_INLINE int +ACE_Pagefile_Memory_Pool::sync (ssize_t, int) +{ + return 0; +} + +ACE_INLINE int +ACE_Pagefile_Memory_Pool::sync (void *, size_t, int) +{ + return 0; +} + +ACE_INLINE int +ACE_Pagefile_Memory_Pool::protect (ssize_t, int) +{ + return 0; +} + +ACE_INLINE int +ACE_Pagefile_Memory_Pool::protect (void *, size_t, int) +{ + return 0; +} + +ACE_INLINE void * +ACE_Pagefile_Memory_Pool::base_addr (void) const +{ + return 0; +} + +ACE_END_VERSIONED_NAMESPACE_DECL + +#endif /* ACE_WIN32 */ |