Made the BToolTipManager lock non-static. Create the singleton via
pthread_once(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34366 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -26,19 +26,22 @@ public:
|
||||
void SetHideDelay(bigtime_t time);
|
||||
bigtime_t HideDelay() const;
|
||||
|
||||
static bool Lock() { return sLock.Lock(); }
|
||||
static void Unlock() { sLock.Unlock(); }
|
||||
bool Lock() { return fLock.Lock(); }
|
||||
void Unlock() { fLock.Unlock(); }
|
||||
|
||||
private:
|
||||
BToolTipManager();
|
||||
virtual ~BToolTipManager();
|
||||
|
||||
static void _InitSingleton();
|
||||
|
||||
private:
|
||||
BLocker fLock;
|
||||
BMessenger fWindow;
|
||||
|
||||
bigtime_t fShowDelay;
|
||||
bigtime_t fHideDelay;
|
||||
|
||||
static BLocker sLock;
|
||||
static BToolTipManager* sDefaultInstance;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user