Use pthread_once() to guard the initialization of sPaletteConverter. This
changes the semantics slightly: Previously after a failed initialization another invocation of InitializeDefault() could theoretically initialize the converter. Since the only error conditions are out of memory and broken app server connection, this shouldn't really matter, though. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34383 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -50,6 +50,10 @@ public:
|
||||
|
||||
static status_t InitializeDefault(bool useServer = false);
|
||||
|
||||
private:
|
||||
static void _InitializeDefaultAppServer();
|
||||
static void _InitializeDefaultNoAppServer();
|
||||
|
||||
private:
|
||||
const color_map *fColorMap;
|
||||
color_map *fOwnColorMap;
|
||||
|
||||
Reference in New Issue
Block a user