Author: rfm
Date: Tue May 19 16:29:54 2015
New Revision: 38512
URL: http://svn.gna.org/viewcvs/gnustep?rev=38512&view=rev
Log:
remove some unnecessary code
Modified:
libs/performance/trunk/GSIOThreadPool.m
Modified: libs/performance/trunk/GSIOThreadPool.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/performance/trunk/GSIOThreadPool.m?rev=38512&r1=38511&r2=38512&view=diff
==============================================================================
--- libs/performance/trunk/GSIOThreadPool.m (original)
+++ libs/performance/trunk/GSIOThreadPool.m Tue May 19 16:29:54 2015
@@ -204,12 +204,12 @@
GSIOThread *t;
NSUInteger c;
- [classLock lock];
if (0 == maxThreads)
{
- [classLock unlock];
return [NSThread mainThread];
}
+
+ [classLock lock];
t = best(threads);
if (nil == t || ((c = [t _count]) > 0 && [threads count] < maxThreads))
{
@@ -279,9 +279,7 @@
- (void) setThreads: (NSUInteger)max
{
- [classLock lock];
maxThreads = max;
- [classLock unlock];
}
- (void) setTimeout: (NSTimeInterval)t
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs