Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 30 lines (17 sloc) 0.539 kB
cafb525 @mikeash create initial MAMirroredQueue @interface
authored
1
2 #import <Foundation/Foundation.h>
3
4
5 @interface MAMirroredQueue : NSObject
6
7 - (size_t)availableBytes;
8 - (void *)readPointer;
9 - (void)advanceReadPointer: (size_t)howmuch;
10
618e295 add ability to lock allocation for multithreaded use, modify thread t…
Michael Ash authored
11 - (BOOL)ensureWriteSpace: (size_t)howmuch;
cafb525 @mikeash create initial MAMirroredQueue @interface
authored
12 - (void *)writePointer;
13 - (void)advanceWritePointer: (size_t)howmuch;
14
618e295 add ability to lock allocation for multithreaded use, modify thread t…
Michael Ash authored
15 - (void)lockAllocation;
16 - (void)unlockAllocation;
17
cafb525 @mikeash create initial MAMirroredQueue @interface
authored
18 // UNIX-like wrappers
19
20 - (size_t)read: (void *)buf count: (size_t)howmuch;
21 - (size_t)write: (const void *)buf count: (size_t)howmuch;
22
23 @end
24
25 @interface MAMirroredQueue (Testing)
26
27 + (void)runTests;
28
29 @end
Something went wrong with that request. Please try again.