// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "evtloop.h"
#endif
}
~wxSocketTable()
{
- DeleteContents(TRUE);
+ WX_CLEAR_HASH_TABLE(*this)
}
wxSocketTableEntry* FindEntry(int fd);
void wxSocketTable::FillSets(fd_set* readset, fd_set* writeset, int* highest)
{
BeginFind();
- wxNode* node = Next();
+ wxHashTable::compatibility_iterator node = Next();
while (node)
{
- wxSocketTableEntry* entry = (wxSocketTableEntry*) node->Data();
+ wxSocketTableEntry* entry = (wxSocketTableEntry*) node->GetData();
if (entry->m_fdInput != -1)
{
void wxSocketTable::ProcessEvents(fd_set* readset, fd_set* writeset)
{
BeginFind();
- wxNode* node = Next();
+ wxHashTable::compatibility_iterator node = Next();
while (node)
{
- wxSocketTableEntry* entry = (wxSocketTableEntry*) node->Data();
+ wxSocketTableEntry* entry = (wxSocketTableEntry*) node->GetData();
if (entry->m_fdInput != -1 && FD_ISSET(entry->m_fdInput, readset))
{
bool wxEventLoopImpl::SendIdleEvent()
{
- wxIdleEvent event;
- event.SetEventObject(wxTheApp);
-
- return wxTheApp->ProcessEvent(event) && event.MoreRequested();
+ return wxTheApp->ProcessIdle();
}
// ============================================================================