mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
More mingw32 tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22000 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
af1b622257
commit
44d19385ed
7 changed files with 2342 additions and 364 deletions
|
@ -30,6 +30,7 @@ include ../../config.mak
|
|||
SUBPROJECT_NAME = win32
|
||||
|
||||
win32_OBJC_FILES =\
|
||||
GSFileHandleWin32.m \
|
||||
GSRunLoopCtxt.m \
|
||||
GSRunLoopWatcher.m \
|
||||
NSMessagePortWin32.m \
|
||||
|
|
2302
Source/win32/GSFileHandleWin32.m
Normal file
2302
Source/win32/GSFileHandleWin32.m
Normal file
File diff suppressed because it is too large
Load diff
|
@ -388,10 +388,36 @@ static const NSMapTableValueCallBacks WatcherMapValueCallBacks =
|
|||
// check wait errors
|
||||
if (wait_return == WAIT_FAILED)
|
||||
{
|
||||
NSLog(@"WaitForMultipleObjects() error in "
|
||||
@"-acceptInputForMode:beforeDate: '%s'",
|
||||
int i;
|
||||
BOOL found = NO;
|
||||
|
||||
NSDebugMLLog(@"NSRunLoop", @"WaitForMultipleObjects() error in "
|
||||
@"-acceptInputForMode:beforeDate: %s",
|
||||
GSLastErrorStr(GetLastError()));
|
||||
abort ();
|
||||
/*
|
||||
* Check each handle in turn until either we find one which has an
|
||||
* event signalled, or we find the one which caused the original
|
||||
* wait to fail ... so the callback routine for that handle can
|
||||
* deal with the problem.
|
||||
*/
|
||||
for (i = 0; i < num_handles; i++)
|
||||
{
|
||||
handleArray[0] = handleArray[i];
|
||||
wait_return = WaitForMultipleObjects(1, handleArray, NO, 0);
|
||||
if (wait_return != WAIT_TIMEOUT)
|
||||
{
|
||||
wait_return = WAIT_OBJECT_0;
|
||||
found = YES;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (found == NO)
|
||||
{
|
||||
NSLog(@"WaitForMultipleObjects() error in "
|
||||
@"-acceptInputForMode:beforeDate: %s",
|
||||
GSLastErrorStr(GetLastError()));
|
||||
abort ();
|
||||
}
|
||||
}
|
||||
|
||||
// if there arent events
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue