34#ifndef eman__emcache__h__
35#define eman__emcache__h__ 1
51 static GlobalCache *instance();
52 ImageIO *get_imageio(
const string & filename,
int rw);
53 int contains(
const string & filename);
54 void add_imageio(
const string & filename,
int rw,
int persist, ImageIO * io);
55 void close_imageio(
const string & filename);
56 void delete_imageio(
const string & filename);
60 pthread_mutex_t mutex;
61 static GlobalCache *global_cache;
62 map < string, ImageIO* >file_imageio;
63 map < string, int >file_rw;
64 map < string, int >file_ref;
65 map < string, int >file_time;
66 map < string, int >file_persist;