+/*****************************************************************************
+ * KillerThread: Thread that kill the application
+ *****************************************************************************/
+static void * KillerThread( void *user_data )
+{
+ NSAutoreleasePool * o_pool = [[NSAutoreleasePool alloc] init];
+
+ intf_thread_t *p_intf = user_data;
+
+ vlc_object_lock ( p_intf );
+ while( vlc_object_alive( p_intf ) )
+ vlc_object_wait( p_intf );
+ vlc_object_unlock( p_intf );
+
+ msg_Dbg( p_intf, "Killing the Mac OS X module\n" );
+
+ /* We are dead, terminate */
+ [NSApp terminate: nil];
+ [o_pool release];
+ return NULL;
+}