Remove obslete code

This commit is contained in:
rfm 2024-05-30 11:28:49 +01:00
parent 58ae7db59a
commit cfc158b4ce
2 changed files with 4 additions and 10 deletions

View file

@ -884,9 +884,7 @@ filesystem.
If you are writing a class library and do not know whether it will be used in
a multithreaded environment or not, and would like to avoid locking overhead
if not, use the @code{NSThread +isMultiThreaded} method. You can also
register to receive @code{NSWillBecomeMultiThreadedNotification}s. You can
also use the @code{GSLazyLock} and @code{GSLazyRecursiveLock} classes (see
next section) which handle this automatically.
register to receive @code{NSWillBecomeMultiThreadedNotification}s.
@subsection Using @code{NSConnection} to Communicate Between Threads
@ -966,10 +964,6 @@ Classes for parsing HTML documents (not necessarily XHTML).
@item GSMimeXxx
Classes for handling MIME messages or HTML POST documents.
@item GSLazyXxx
Classes implementing ``lazy'' locking that do not actually attempt any locking
unless running in a multithreaded application. See @ref{Base Library, ,
Threads and Run Control}.
@end table
All of these classes have excellent API reference documentation and you

View file

@ -187,7 +187,7 @@ static Class messagePortClass = 0;
ports = NSCreateMapTable(NSNonRetainedObjectMapKeyCallBacks,
NSNonOwnedPointerMapValueCallBacks, 0);
[[NSObject leakAt: &ports] release];
messagePortLock = [GSLazyRecursiveLock new];
messagePortLock = [NSRecursiveLock new];
[[NSObject leakAt: &messagePortLock] release];
security.nLength = sizeof(SECURITY_ATTRIBUTES);
security.lpSecurityDescriptor = 0; // Default
@ -310,7 +310,7 @@ static Class messagePortClass = 0;
this->name = [[NSString alloc] initWithFormat: @"%08x%08x",
((unsigned)ident), sequence++];
this->lock = [GSLazyRecursiveLock new];
this->lock = [NSRecursiveLock new];
this->wHandle = INVALID_HANDLE_VALUE;
this->wEvent = INVALID_HANDLE_VALUE;
@ -372,7 +372,7 @@ static Class messagePortClass = 0;
self->_is_valid = YES;
this->name = [name copy];
this->lock = [GSLazyRecursiveLock new];
this->lock = [NSRecursiveLock new];
this->rState = RS_NONE;