From f00e78a769aae6ad3b5c25550277fb692b071920 Mon Sep 17 00:00:00 2001 From: Richard Frith-Macdonald Date: Sun, 6 Apr 2003 07:14:50 +0000 Subject: [PATCH] Minor fix git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16372 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/NSThread.m | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2e1dde120..d733b73cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-04-06 Richard Frith-Macdonald + + * Source/NSThread.m: (GSPerformHolder) execute perform operations + in the same order in which they were submitted. + 2003-04-04 Stephane Corthesy * macosx/config.h, macosx/preface.h: Update. diff --git a/Source/NSThread.m b/Source/NSThread.m index c75f0bfd2..e47542ef9 100644 --- a/Source/NSThread.m +++ b/Source/NSThread.m @@ -725,7 +725,8 @@ static NSDate *theFuture; forMode: (NSString*)mode { NSRunLoop *loop = [NSRunLoop currentRunLoop]; - unsigned c; + unsigned int i; + unsigned int c; char dummy; read(inputFd, &dummy, 1); @@ -733,9 +734,9 @@ static NSDate *theFuture; [subthreadsLock lock]; c = [perfArray count]; - while (c-- > 0) + for (i = 0; i < c; i++) { - GSPerformHolder *h = [perfArray objectAtIndex: c]; + GSPerformHolder *h = [perfArray objectAtIndex: i]; [loop performSelector: @selector(fire) target: h