mirror of
https://github.com/gnustep/libs-performance.git
synced 2025-02-15 16:11:14 +00:00
remove some unnecessary code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/performance/trunk@38512 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f2fec29ccc
commit
e032b577af
1 changed files with 2 additions and 4 deletions
|
@ -204,12 +204,12 @@ best(NSMutableArray *a)
|
|||
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 @@ best(NSMutableArray *a)
|
|||
|
||||
- (void) setThreads: (NSUInteger)max
|
||||
{
|
||||
[classLock lock];
|
||||
maxThreads = max;
|
||||
[classLock unlock];
|
||||
}
|
||||
|
||||
- (void) setTimeout: (NSTimeInterval)t
|
||||
|
|
Loading…
Reference in a new issue