* Made the tool tip manager's lock available, and guarded adding/removing the

tool tip view with this lock, too.
* BTextToolTip::SetText() can now be called in all circumstances safely.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32242 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2009-08-11 07:47:49 +00:00
parent bfb5eef88f
commit fcd5021275
3 changed files with 33 additions and 2 deletions
@@ -6,6 +6,7 @@
#define _TOOL_TIP_MANAGER_H
#include <Locker.h>
#include <Messenger.h>
#include <Point.h>
@@ -25,6 +26,9 @@ public:
void SetHideDelay(bigtime_t time);
bigtime_t HideDelay() const;
static bool Lock() { return sLock.Lock(); }
static void Unlock() { sLock.Unlock(); }
private:
BToolTipManager();
virtual ~BToolTipManager();
@@ -34,6 +38,7 @@ private:
bigtime_t fShowDelay;
bigtime_t fHideDelay;
static BLocker sLock;
static BToolTipManager* sDefaultInstance;
};