Commit 36ce01dd authored by Laurent Aimar's avatar Laurent Aimar

Removed useless vlc_thread_set_priority() calls in macosx code.

The thread are already created with the right priority. If not, then
vlc_clone() should be fixed instead.
Also, the vlc_thread_set_priority() calls on the main interface thread
seem bogus, as the target thread is dedicated to monitor the libvlc
death and is not the main running thread.
parent 6f07ef8f
......@@ -869,8 +869,6 @@
assert([data isKindOfClass:[VLCAutoGeneratedMenuContent class]]);
VLCAutoGeneratedMenuContent *menuContent = (VLCAutoGeneratedMenuContent *)data;
vlc_thread_set_priority( VLCIntf , VLC_THREAD_PRIORITY_LOW );
p_object = [menuContent vlcObject];
if( p_object != NULL )
......
......@@ -117,11 +117,6 @@ static void Run( intf_thread_t *p_intf )
{
sigset_t set;
/* Do it again - for some unknown reason, vlc_thread_create() often
* fails to go to real-time priority with the first launched thread
* (???) --Meuuh */
vlc_thread_set_priority( p_intf, VLC_THREAD_PRIORITY_LOW );
/* Make sure the "force quit" menu item does quit instantly.
* VLC overrides SIGTERM which is sent by the "force quit"
* menu item to make sure deamon mode quits gracefully, so
......@@ -565,8 +560,6 @@ static VLCMain *_o_sharedMainInstance = nil;
[o_controls setupVarMenuItem: o_mi_add_intf target: (vlc_object_t *)p_intf
var: "intf-add" selector: @selector(toggleVar:)];
vlc_thread_set_priority( p_intf, VLC_THREAD_PRIORITY_LOW );
}
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
......@@ -1613,8 +1606,6 @@ static void manage_cleanup( void * args )
/* new thread requires a new pool */
vlc_thread_set_priority( p_intf, VLC_THREAD_PRIORITY_LOW );
p_playlist = pl_Get( p_intf );
var_AddCallback( p_playlist, "item-current", PlaylistChanged, self );
......
......@@ -1520,7 +1520,6 @@
- (IBAction)addNode:(id)sender
{
playlist_t * p_playlist = pl_Get( VLCIntf );
vlc_thread_set_priority( p_playlist, VLC_THREAD_PRIORITY_LOW );
PL_LOCK;
playlist_NodeCreate( p_playlist, _("Empty Folder"),
......
......@@ -125,11 +125,6 @@ static void Run( intf_thread_t *p_intf )
{
sigset_t set;
/* Do it again - for some unknown reason, vlc_thread_create() often
* fails to go to real-time priority with the first launched thread
* (???) --Meuuh */
vlc_thread_set_priority( p_intf, VLC_THREAD_PRIORITY_LOW );
/* Make sure the "force quit" menu item does quit instantly.
* VLC overrides SIGTERM which is sent by the "force quit"
* menu item to make sure deamon mode quits gracefully, so
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment