2016-06-16 22:04:54 +00:00
|
|
|
//
|
|
|
|
// CSBestEffortUpdater.h
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 16/06/2016.
|
|
|
|
// Copyright © 2016 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
2016-09-01 00:43:29 +00:00
|
|
|
#import <CoreVideo/CoreVideo.h>
|
2016-06-16 22:04:54 +00:00
|
|
|
|
|
|
|
@class CSBestEffortUpdater;
|
|
|
|
|
|
|
|
@protocol CSBestEffortUpdaterDelegate <NSObject>
|
|
|
|
|
|
|
|
- (void)bestEffortUpdater:(CSBestEffortUpdater *)bestEffortUpdater runForCycles:(NSUInteger)cycles didSkipPreviousUpdate:(BOOL)didSkipPreviousUpdate;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
@interface CSBestEffortUpdater : NSObject
|
|
|
|
|
|
|
|
@property (nonatomic, assign) double clockRate;
|
2016-09-13 02:06:03 +00:00
|
|
|
@property (nonatomic, assign) BOOL runAsUnlimited;
|
2016-06-16 22:04:54 +00:00
|
|
|
@property (nonatomic, weak) id<CSBestEffortUpdaterDelegate> delegate;
|
|
|
|
|
|
|
|
- (void)update;
|
2016-10-17 02:14:47 +00:00
|
|
|
- (void)flush;
|
2016-06-16 22:04:54 +00:00
|
|
|
|
|
|
|
@end
|