00001 #ifndef __INSTANTIO_BASICCACHE_H
00002 #define __INSTANTIO_BASICCACHE_H
00003
00004 #ifdef _MSC_VER
00005 # pragma once
00006 #endif
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #include "InstantIODef.h"
00027 namespace Medusa
00028 {
00029 class Mutex;
00030 }
00031
00032
00033 namespace InstantIO
00034 {
00035
00042 class INSTANTIO_DLLMAPPING BasicCache
00043 {
00044 protected:
00045
00047 BasicCache();
00048
00050 ~BasicCache();
00051
00053 void lock();
00054
00056 void unlock();
00057
00058 private:
00059
00061 BasicCache(const BasicCache &);
00062
00064 const BasicCache &operator=(const BasicCache &);
00065
00067 Medusa::Mutex *mutex_;
00068 };
00069
00070
00071 }
00072
00073
00074 #endif // __INSTANTIO_BASICCACHE_H