Thread diagnositc changes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38768 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2015-07-08 12:54:15 +00:00
parent dffcd0bb1c
commit 999fda788a
7 changed files with 110 additions and 28 deletions

View file

@ -78,10 +78,12 @@ extern "C" {
#endif
}
/**
* Try to acquire lock and return immediately, YES if succeeded, NO if not.
#if !NO_GNUSTEP
/** Report whether this lock is held by the current thread.<br />
* Raises an exception if this is not supported by the system lock mechanism.
*/
- (BOOL) tryLock;
- (BOOL) isLockedByCurrentThread;
#endif
/**
* Try to acquire lock and return before limit, YES if succeeded, NO if not.
@ -93,6 +95,11 @@ extern "C" {
*/
- (void) lock;
/**
* Try to acquire lock and return immediately, YES if succeeded, NO if not.
*/
- (BOOL) tryLock;
/**
* Relinquish lock.
*/
@ -183,6 +190,13 @@ extern "C" {
*/
- (NSInteger) condition;
#if !NO_GNUSTEP
/** Report whether this lock is held by the current thread.<br />
* Raises an exception if this is not supported by the system lock mechanism.
*/
- (BOOL) isLockedByCurrentThread;
#endif
/*
* Acquiring and releasing the lock.
*/
@ -265,6 +279,13 @@ extern "C" {
#endif
}
#if !NO_GNUSTEP
/** Report whether this lock is held by the current thread.<br />
* Raises an exception if this is not supported by the system lock mechanism.
*/
- (BOOL) isLockedByCurrentThread;
#endif
/**
* Try to acquire lock regardless of condition and return immediately, YES if
* succeeded, NO if not.