mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
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:
parent
dffcd0bb1c
commit
999fda788a
7 changed files with 110 additions and 28 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue