Correct def. Document

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9555 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2001-04-10 22:18:36 +00:00
parent ba7813d67b
commit 4fdda0532b
4 changed files with 27 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2001-04-10 Adam Fedor <fedor@gnu.org>
* Headers/gnustep/base/preface.h.in: Correct NeXT_RUNTIME name
* Documentation/gsdoc/NSLock.h: Documented.
2001-04-10 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSTask.m: Bugfix to send out task termination notification

View file

@ -3,8 +3,8 @@
<gsdoc base="NSLock" prev="NSInvocation" next="NSMethodSignature" up="Base">
<head>
<title>NSLock</title>
<author name="Richard Frith-Macdonald">
<email address="rfm@gnu.org"/>
<author name="Adam Fedor">
<email address="fedor@gnu.org"/>
<url url="http://www.gnustep.org/developers/whoiswho.html"/>
</author>
<version>$Revision$</version>
@ -17,16 +17,32 @@
<declared>Foundation/NSLock.h</declared>
<conform>NSLocking</conform>
<desc>
An NSLock is used in multi-threaded applications to protect critical
pieces of code. While one thread holds a lock within a piece of code,
another thread cannot execute that code until the first thread has
given up it's hold on the lock. The limitation of NSLock is that
you can only lock an
NSLock once and it must be unlocked before it can be aquired again.
Other lock classes, notably NSRecursiveLock, have
different restrictions.
</desc>
<method type="BOOL">
<sel>lockBeforeDate:</sel>
<arg type="NSDate*">limit</arg>
<desc>
Attempts to aquire a lock before the date limit passes. It returns YES
if it can. It returns NO if it cannot, or if the current thread already
has the lock (but it waits until the time limit is up before returning
NO).
</desc>
</method>
<method type="BOOL">
<sel>tryLock</sel>
<desc>
Attempts to aquire a lock, but returns immediately if the lock
cannot be aquired. It returns YES if the lock is aquired. It returns
NO if the lock cannot be aquired or if the current thread already has
the lock.
</desc>
</method>
</class>

View file

@ -28,7 +28,7 @@
#include <base/preface.h>
#if NeXT_runtime
#if NeXT_RUNTIME
#include <objc/objc-class.h>
@ -269,6 +269,6 @@ list_free(struct objc_list* list)
}
}
#endif /* NeXT_runtime */
#endif /* NeXT_RUNTIME */
#endif /* __objc_gnu2next_h_GNUSTEP_BASE_INCLUDE */

View file

@ -45,7 +45,7 @@
#define GNUSTEP_BASE_SOCKET_MESSAGE (WM_USER + 1)
#endif
#if NeXT_runtime
#if NeXT_RUNTIME
#include <objc/objc.h>
#include <objc/objc-class.h>
#include <objc/objc-runtime.h>