- bugfix __objc_class_name_NSCondition

This commit is contained in:
Dirk Meyer 2011-11-04 09:56:41 +00:00
parent c9ffe24284
commit 44ddb9d278
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=285024
3 changed files with 32 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= performance
PORTVERSION= 0.3.2
PORTREVISION= 1
CATEGORIES= devel gnustep
MASTER_SITES= ${MASTER_SITE_GNUSTEP}
MASTER_SITE_SUBDIR= libs

View File

@ -0,0 +1,20 @@
--- GSFIFO.h.orig 2011-10-25 13:35:27.000000000 +0200
+++ GSFIFO.h 2011-11-04 10:22:40.000000000 +0100
@@ -25,7 +25,7 @@
#import <Foundation/NSObject.h>
@class NSArray;
-@class NSCondition;
+@class NSConditionLock;
@class NSNumber;
@class NSString;
@class NSThread;
@@ -82,7 +82,7 @@
uint16_t timeout;
uint64_t fullCount; // Total waits for full FIFO
uint64_t emptyCount; // Total waits for empty FIFO
- NSCondition *condition;
+ NSConditionLock *condition;
NSString *name;
NSTimeInterval getWaitTotal; // Total time waiting for gets
NSTimeInterval putWaitTotal; // Total time waiting for puts

View File

@ -0,0 +1,11 @@
--- GSFIFO.m.orig 2011-10-25 13:51:10.000000000 +0200
+++ GSFIFO.m 2011-11-04 10:22:18.000000000 +0100
@@ -421,7 +421,7 @@
_items = (void*)NSAllocateCollectable(c * sizeof(void*), NSScannedOption);
if (YES == mp || YES == mc)
{
- condition = [NSCondition new];
+ condition = [NSConditionLock new];
}
name = [n copy];
if (nil == a)