Use a sample to indicate a reader EOF.

This commit is contained in:
Damiano Galassi committed 2016-07-23 17:20:31 +02:00
1 parent 54437f9030
commit 6a2b4a1fad
12 files changed
+121 -71

No files matched your search

+15 -1
View File
@@ -8,7 +8,21 @@
#import "MP42Fifo.h"
@implementation MP42Fifo
@implementation MP42Fifo {
@private
id *_array;
int32_t _head;
int32_t _tail;
int32_t _count;
int32_t _size;
int32_t _cancelled;
dispatch_semaphore_t _full;
dispatch_semaphore_t _empty;
}
- (instancetype)init {
self = [self initWithCapacity:300];