summaryrefslogtreecommitdiff
path: root/packages/cocoaint/src/foundation/NSDistributedLock.inc
blob: 6a7e8e07caf1185e0f0001989adcc7cfbdf3a6a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ Parsed from Foundation.framework NSDistributedLock.h }


{$ifdef TYPES}
type
  NSDistributedLockPtr = ^NSDistributedLock;
{$endif}

{$ifdef CLASSES}

type
  NSDistributedLock = objcclass external (NSObject)
  private
    _priv: pointer;
  public
    class function lockWithPath (path: NSString): NSDistributedLock; message 'lockWithPath:';
    function init: instancetype; message 'init';
    function initWithPath (path: NSString): instancetype; message 'initWithPath:'; { NS_DESIGNATED_INITIALIZER }
    function tryLock: ObjCBOOL; message 'tryLock';
    procedure unlock; message 'unlock';
    procedure breakLock; message 'breakLock';
    function lockDate: NSDate; message 'lockDate';
  end;
{$endif}