MonobjcMonobjc Documented Class Library
LockWhenConditionBeforeDate Method (condition, limit)
NamespacesMonobjc.FoundationNSConditionLockLockWhenConditionBeforeDate(NSInteger, NSDate)

Attempts to acquire a lock before a specified moment in time.

Original signature is '- (BOOL)lockWhenCondition:(NSInteger)condition beforeDate:(NSDate *)limit'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool LockWhenConditionBeforeDate(
	NSInteger condition,
	NSDate limit
)
Public Overridable Function LockWhenConditionBeforeDate ( _
	condition As NSInteger, _
	limit As NSDate _
) As Boolean
public:
virtual bool LockWhenConditionBeforeDate(
	NSInteger condition, 
	NSDate^ limit
)
Parameters
condition (NSInteger)
The condition to match on.
limit (NSDate)
The date by which the lock must be acquired or the attempt will time out.
Return Value
YES if the lock is acquired within the time limit, NO otherwise.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)