mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-17 00:25:40 +02:00
fixed: events were added before event queue was ready, caused debug build assert failure.
removed sleep hack in favour of cond var wait.
This commit is contained in:
parent
0d087d4edc
commit
45c1cde698
10 changed files with 126 additions and 25 deletions
|
@ -47,6 +47,7 @@ class CThread;
|
|||
class COSXKeyState;
|
||||
class COSXScreenSaver;
|
||||
class IEventQueue;
|
||||
class CMutex;
|
||||
|
||||
//! Implementation of IPlatformScreen for OS X
|
||||
class COSXScreen : public CPlatformScreen {
|
||||
|
@ -98,6 +99,7 @@ public:
|
|||
virtual CString& getDraggingFilename();
|
||||
|
||||
const CString& getDropTarget() const { return m_dropTarget; }
|
||||
void waitForCarbonLoop() const;
|
||||
|
||||
protected:
|
||||
// IPlatformScreen overrides
|
||||
|
@ -344,4 +346,9 @@ private:
|
|||
|
||||
CThread* m_getDropTargetThread;
|
||||
CString m_dropTarget;
|
||||
|
||||
#if defined(MAC_OS_X_VERSION_10_7)
|
||||
CMutex* m_carbonLoopMutex;
|
||||
CCondVar<bool>* m_carbonLoopReady;
|
||||
#endif
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue