mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-10 08:21:40 +08:00
Drop C prefix on Windows
This commit is contained in:
@@ -30,10 +30,10 @@ class EventQueueTimer { };
|
||||
|
||||
|
||||
//
|
||||
// CMSWindowsEventQueueBuffer
|
||||
// MSWindowsEventQueueBuffer
|
||||
//
|
||||
|
||||
CMSWindowsEventQueueBuffer::CMSWindowsEventQueueBuffer(IEventQueue* events) :
|
||||
MSWindowsEventQueueBuffer::MSWindowsEventQueueBuffer(IEventQueue* events) :
|
||||
m_events(events)
|
||||
{
|
||||
// remember thread. we'll be posting messages to it.
|
||||
@@ -50,13 +50,13 @@ CMSWindowsEventQueueBuffer::CMSWindowsEventQueueBuffer(IEventQueue* events) :
|
||||
PeekMessage(&dummy, NULL, WM_USER, WM_USER, PM_NOREMOVE);
|
||||
}
|
||||
|
||||
CMSWindowsEventQueueBuffer::~CMSWindowsEventQueueBuffer()
|
||||
MSWindowsEventQueueBuffer::~MSWindowsEventQueueBuffer()
|
||||
{
|
||||
// do nothing
|
||||
}
|
||||
|
||||
void
|
||||
CMSWindowsEventQueueBuffer::waitForEvent(double timeout)
|
||||
MSWindowsEventQueueBuffer::waitForEvent(double timeout)
|
||||
{
|
||||
// check if messages are available first. if we don't do this then
|
||||
// MsgWaitForMultipleObjects() will block even if the queue isn't
|
||||
@@ -83,7 +83,7 @@ CMSWindowsEventQueueBuffer::waitForEvent(double timeout)
|
||||
}
|
||||
|
||||
IEventQueueBuffer::Type
|
||||
CMSWindowsEventQueueBuffer::getEvent(Event& event, UInt32& dataID)
|
||||
MSWindowsEventQueueBuffer::getEvent(Event& event, UInt32& dataID)
|
||||
{
|
||||
// peek at messages first. waiting for QS_ALLINPUT will return
|
||||
// if a message has been sent to our window but GetMessage will
|
||||
@@ -119,26 +119,26 @@ CMSWindowsEventQueueBuffer::getEvent(Event& event, UInt32& dataID)
|
||||
}
|
||||
|
||||
bool
|
||||
CMSWindowsEventQueueBuffer::addEvent(UInt32 dataID)
|
||||
MSWindowsEventQueueBuffer::addEvent(UInt32 dataID)
|
||||
{
|
||||
return (PostThreadMessage(m_thread, m_userEvent,
|
||||
static_cast<WPARAM>(dataID), 0) != 0);
|
||||
}
|
||||
|
||||
bool
|
||||
CMSWindowsEventQueueBuffer::isEmpty() const
|
||||
MSWindowsEventQueueBuffer::isEmpty() const
|
||||
{
|
||||
return (HIWORD(GetQueueStatus(QS_ALLINPUT)) == 0);
|
||||
}
|
||||
|
||||
EventQueueTimer*
|
||||
CMSWindowsEventQueueBuffer::newTimer(double, bool) const
|
||||
MSWindowsEventQueueBuffer::newTimer(double, bool) const
|
||||
{
|
||||
return new EventQueueTimer;
|
||||
}
|
||||
|
||||
void
|
||||
CMSWindowsEventQueueBuffer::deleteTimer(EventQueueTimer* timer) const
|
||||
MSWindowsEventQueueBuffer::deleteTimer(EventQueueTimer* timer) const
|
||||
{
|
||||
delete timer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user