improve stability for ICC storage and avoid race conditions.
preparation step 1 for making dcraw multithread safe.
This commit is contained in:
@@ -54,9 +54,14 @@ class ICCStore {
|
||||
|
||||
cmsHPROFILE xyz;
|
||||
cmsHPROFILE srgb;
|
||||
|
||||
Glib::Mutex mutex_;
|
||||
|
||||
ICCStore ();
|
||||
|
||||
public:
|
||||
ICCStore ();
|
||||
|
||||
static ICCStore* getInstance(void);
|
||||
|
||||
int numOfWProfiles ();
|
||||
cmsHPROFILE createFromMatrix (const double matrix[3][3], bool gamma=false, Glib::ustring name="");
|
||||
@@ -74,7 +79,7 @@ class ICCStore {
|
||||
std::vector<std::string> getOutputProfiles ();
|
||||
};
|
||||
|
||||
extern ICCStore iccStore;
|
||||
#define iccStore ICCStore::getInstance()
|
||||
|
||||
//extern const char* wpnames[];
|
||||
}
|
||||
|
Reference in New Issue
Block a user