зеркало из https://github.com/mozilla/pjs.git
fix for bug 18114. Adding simple accessor to PL_WaitForEvent.
This commit is contained in:
Родитель
38f0f34022
Коммит
a234345645
|
@ -224,6 +224,14 @@ nsEventQueueImpl::HandleEvent(PLEvent* aEvent)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsEventQueueImpl::WaitForEvent()
|
||||
{
|
||||
PL_WaitForEvent(mEventQueue);
|
||||
CheckForDeactivation();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP_(PRInt32)
|
||||
nsEventQueueImpl::GetEventQueueSelectFD()
|
||||
{
|
||||
|
|
|
@ -46,6 +46,8 @@ public:
|
|||
NS_IMETHOD EventAvailable(PRBool& aResult);
|
||||
NS_IMETHOD GetEvent(PLEvent** aResult);
|
||||
NS_IMETHOD HandleEvent(PLEvent* aEvent);
|
||||
|
||||
NS_IMETHOD WaitForEvent();
|
||||
|
||||
NS_IMETHOD_(PRInt32) GetEventQueueSelectFD();
|
||||
|
||||
|
|
|
@ -53,6 +53,8 @@ public:
|
|||
NS_IMETHOD GetEvent(PLEvent** aResult) = 0;
|
||||
NS_IMETHOD HandleEvent(PLEvent* aEvent) = 0;
|
||||
|
||||
NS_IMETHOD WaitForEvent() = 0;
|
||||
|
||||
NS_IMETHOD_(PRInt32) GetEventQueueSelectFD() = 0;
|
||||
|
||||
NS_IMETHOD Init() = 0;
|
||||
|
|
Загрузка…
Ссылка в новой задаче