mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Fix select based implementation of GSRunLoopCtxt.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27269 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7255d33baf
commit
23711d82d3
2 changed files with 11 additions and 3 deletions
|
@ -1,3 +1,10 @@
|
|||
2008-12-09 Wolfgang Lux <wlux@uni-muenster.de>
|
||||
|
||||
* Source/unix/GSRunLoopCtxt.m (-pollUntil:within): Add missing
|
||||
local variable declaration and fix incorrect arguments for some
|
||||
receivedEvent:type:extra:forMode: messages in the select based
|
||||
implementation.
|
||||
|
||||
2008-12-08 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSKeyedUnarchiver.m: ([versionForClassName:]) implement
|
||||
|
|
|
@ -638,6 +638,7 @@ static void setPollfd(int fd, int event, GSRunLoopCtxt *ctxt)
|
|||
fd_set read_fds; // Mask for read-ready fds.
|
||||
fd_set exception_fds; // Mask for exception fds.
|
||||
fd_set write_fds; // Mask for write-ready fds.
|
||||
int fd;
|
||||
int fdEnd = -1;
|
||||
unsigned count;
|
||||
unsigned i;
|
||||
|
@ -901,7 +902,7 @@ static void setPollfd(int fd, int event, GSRunLoopCtxt *ctxt)
|
|||
*/
|
||||
[watcher->receiver receivedEvent: watcher->data
|
||||
type: watcher->type
|
||||
extra: watcher->data
|
||||
extra: (void*)(intptr_t)fdIndex
|
||||
forMode: mode];
|
||||
}
|
||||
GSPrivateNotifyASAP();
|
||||
|
@ -933,7 +934,7 @@ static void setPollfd(int fd, int event, GSRunLoopCtxt *ctxt)
|
|||
*/
|
||||
[watcher->receiver receivedEvent: watcher->data
|
||||
type: watcher->type
|
||||
extra: watcher->data
|
||||
extra: (void*)(intptr_t)fdIndex
|
||||
forMode: mode];
|
||||
}
|
||||
GSPrivateNotifyASAP();
|
||||
|
@ -973,7 +974,7 @@ static void setPollfd(int fd, int event, GSRunLoopCtxt *ctxt)
|
|||
*/
|
||||
[watcher->receiver receivedEvent: watcher->data
|
||||
type: watcher->type
|
||||
extra: watcher->data
|
||||
extra: (void*)(intptr_t)fdIndex
|
||||
forMode: mode];
|
||||
}
|
||||
GSPrivateNotifyASAP();
|
||||
|
|
Loading…
Reference in a new issue