mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
NSString: Cache ICU collator in thread-local storage (#450)
* Add ICU collator caching * Update ChangeLog
This commit is contained in:
parent
cdbb1cc1b4
commit
5cd19978d5
4 changed files with 198 additions and 105 deletions
|
@ -1194,6 +1194,7 @@ unregisterActiveThread(NSThread *thread)
|
|||
DESTROY(_target);
|
||||
DESTROY(_arg);
|
||||
DESTROY(_name);
|
||||
DESTROY(_stringCollatorCache);
|
||||
if (_autorelease_vars.pool_cache != 0)
|
||||
{
|
||||
[NSAutoreleasePool _endThread: self];
|
||||
|
@ -1570,9 +1571,18 @@ nsthreadLauncher(void *thread)
|
|||
return _thread_dictionary;
|
||||
}
|
||||
|
||||
- (id) _stringCollatorCache
|
||||
{
|
||||
return (id)self->_stringCollatorCache;
|
||||
}
|
||||
- (void) _setStringCollatorCache: (id) cache
|
||||
{
|
||||
ASSIGN(self->_stringCollatorCache, cache);
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
|
||||
|
||||
@implementation NSThread (GSLockInfo)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue