Regenerated

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9567 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2001-04-12 12:25:23 +00:00
parent b46d3973a2
commit b745ab0ec0
2 changed files with 82 additions and 0 deletions

View file

@ -12,6 +12,75 @@
<p>Version: $Revision$</p>
<p>Date: $Date$</p>
<h2><a name ="cont-0">Functions</a></h2>
<h2><a name ="function-0">GSCurrentThread</a></h2>
<p><b>Declared in: </b> Foundation/NSThread.h</p>
<b>Prototype: </b> NSThread* GSCurrentThread()<br>
<p>
This function is a GNUstep extension. It pretty much
duplicates the functionality of [NSThread +currentThread]
but is more efficient and is used internally throughout
GNUstep.
</p>
<p>
Returns the current thread. Could perhaps return <code>nil</code>
if executing a thread that was started outside the GNUstep
environment and not registered (this should not happen in a
well-coded application).
</p>
<hr>
<h2><a name ="function-1">GSRegisterCurrentThread</a></h2>
<p><b>Declared in: </b> Foundation/NSThread.h</p>
<b>Prototype: </b> BOOL GSRegisterCurrentThread()<br>
<p>
This functiion is provided to let threads started by some other
software library register themselves to be used with the
GNUstep system. All such threads should call this function
before attempting to use any GNUstep objects.
</p>
<p>
Returns <code>YES</code> if the thread can be registered,
<code>NO</code> if it is already registered.
</p>
<p>
Sends out a <code>NSWillBecomeMultiThreadedNotification</code>
if the process was not already multithreaded.
</p>
<hr>
<h2><a name ="function-2">GSUnregisterCurrentThread</a></h2>
<p><b>Declared in: </b> Foundation/NSThread.h</p>
<b>Prototype: </b> void GSUnregisterCurrentThread()<br>
<p>
This functiion is provided to let threads started by some other
software library unregister themselves from the GNUstep threading
system.
</p>
<p>
Calling this function causes a
<code>NSThreadWillExitNotification</code>
to be sent out, and destroys the GNUstep NSThread object
associated with the thread.
</p>
<hr>
<h2><a name ="cont-1">Types</a></h2>
<h3><a name ="NSRange">NSRange</a></h3>
<p><b>Declared in: </b> Foundation/NSRange.h</p>

View file

@ -38,6 +38,19 @@
<h3><a name ="method-0">currentThread</a></h3>
+ (NSThread*) <b>currentThread</b>;<br>
<p>
Returns the NSThread object corresponding to the current thread.
</p>
<p>
NB. In GNUstep the library internals use the GSCurrentThread()
function as a more efficient mechanism for doing this job - so
you cannot use a category to override this method and expect
the library internals to use your implementation.
</p>
<hr>
<h3><a name ="method-1">detachNewThreadSelector:toTarget:(id)aTarget withObject:</a></h3>