pass more info to notification functions

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29068 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2009-11-27 07:53:38 +00:00
parent 48499df0dd
commit e0c9ae4e2d
6 changed files with 43 additions and 31 deletions

View file

@ -411,7 +411,7 @@ static void setPollfd(int fd, int event, GSRunLoopCtxt *ctxt)
* we can service the queue. Similarly, if a task has completed,
* we need to deliver its notifications.
*/
if (GSPrivateCheckTasks() || GSPrivateNotifyMore() || immediate == YES)
if (GSPrivateCheckTasks() || GSPrivateNotifyMore(mode) || immediate == YES)
{
milliseconds = 0;
}
@ -491,7 +491,7 @@ static void setPollfd(int fd, int event, GSRunLoopCtxt *ctxt)
extra: watcher->data
forMode: mode];
}
GSPrivateNotifyASAP();
GSPrivateNotifyASAP(mode);
}
/*
@ -566,7 +566,7 @@ static void setPollfd(int fd, int event, GSRunLoopCtxt *ctxt)
extra: (void*)(uintptr_t)fd
forMode: mode];
}
GSPrivateNotifyASAP();
GSPrivateNotifyASAP(mode);
if (completed == YES)
{
break; // A nested poll has done the job.
@ -598,7 +598,7 @@ static void setPollfd(int fd, int event, GSRunLoopCtxt *ctxt)
extra: (void*)(uintptr_t)fd
forMode: mode];
}
GSPrivateNotifyASAP();
GSPrivateNotifyASAP(mode);
if (completed == YES)
{
break; // A nested poll has done the job.
@ -639,7 +639,7 @@ static void setPollfd(int fd, int event, GSRunLoopCtxt *ctxt)
extra: (void*)(uintptr_t)fd
forMode: mode];
}
GSPrivateNotifyASAP();
GSPrivateNotifyASAP(mode);
if (completed == YES)
{
break; // A nested poll has done the job.
@ -837,7 +837,7 @@ static void setPollfd(int fd, int event, GSRunLoopCtxt *ctxt)
* we can service the queue. Similarly, if a task has completed,
* we need to deliver its notifications.
*/
if (GSPrivateCheckTasks() || GSPrivateNotifyMore() || immediate == YES)
if (GSPrivateCheckTasks() || GSPrivateNotifyMore(mode) || immediate == YES)
{
timeout.tv_sec = 0;
timeout.tv_usec = 0;
@ -904,7 +904,7 @@ static void setPollfd(int fd, int event, GSRunLoopCtxt *ctxt)
extra: watcher->data
forMode: mode];
}
GSPrivateNotifyASAP();
GSPrivateNotifyASAP(mode);
}
/*
@ -965,7 +965,7 @@ static void setPollfd(int fd, int event, GSRunLoopCtxt *ctxt)
extra: (void*)(intptr_t)fdIndex
forMode: mode];
}
GSPrivateNotifyASAP();
GSPrivateNotifyASAP(mode);
if (completed == YES)
{
break;
@ -997,7 +997,7 @@ static void setPollfd(int fd, int event, GSRunLoopCtxt *ctxt)
extra: (void*)(intptr_t)fdIndex
forMode: mode];
}
GSPrivateNotifyASAP();
GSPrivateNotifyASAP(mode);
if (completed == YES)
{
break;
@ -1038,7 +1038,7 @@ static void setPollfd(int fd, int event, GSRunLoopCtxt *ctxt)
extra: (void*)(intptr_t)fdIndex
forMode: mode];
}
GSPrivateNotifyASAP();
GSPrivateNotifyASAP(mode);
if (completed == YES)
{
break;