diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-03-04 14:23:06 +0100 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-05-12 15:27:54 +0200 |
commit | 134f3e97bf482b75c0eccbe5ac943a2a1d5a4ad6 (patch) | |
tree | 98bac431df2697072238864e48a0380d3b1745ff /osdep/macosx_application_objc.h | |
parent | afdc9c4ae2e69a9ced6c3c6580df19edfedea36a (diff) | |
download | mpv-134f3e97bf482b75c0eccbe5ac943a2a1d5a4ad6.tar.bz2 mpv-134f3e97bf482b75c0eccbe5ac943a2a1d5a4ad6.tar.xz |
OSX: run native event loop in a separate thread
This commit is a followup on the previous one and uses a solution I like more
since it totally decouples the Cocoa code from mpv's core and tries to emulate
a generic Cocoa application's lifecycle as much as possible without fighting
the framework.
mpv's main is executed in a pthread while the main thread runs the native cocoa
event loop.
All of the thread safety is mainly accomplished with additional logic in
cocoa_common as to not increase complexity on the crossplatform parts of the
code.
Diffstat (limited to 'osdep/macosx_application_objc.h')
-rw-r--r-- | osdep/macosx_application_objc.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/osdep/macosx_application_objc.h b/osdep/macosx_application_objc.h index 340b2a9b1c..b569d60f25 100644 --- a/osdep/macosx_application_objc.h +++ b/osdep/macosx_application_objc.h @@ -22,16 +22,10 @@ @interface Application : NSObject<NSApplicationDelegate> - (void)initialize_menu; - (void)registerSelector:(SEL)selector forKey:(MPMenuKey)key; -- (void)call_callback; -- (void)schedule_timer; - (void)stopPlayback; -@property(nonatomic, assign) play_loop_callback callback; -@property(nonatomic, assign) should_stop_callback shouldStopPlayback; -@property(nonatomic, assign) void *context; @property(nonatomic, assign) struct input_ctx *inputContext; @property(nonatomic, assign) struct mp_fifo *keyFIFO; -@property(nonatomic, retain) NSTimer *callbackTimer; @property(nonatomic, retain) NSMutableDictionary *menuItems; @property(nonatomic, retain) NSArray *files; @property(nonatomic, retain) NSMutableArray *argumentsList; |