[vlc-devel] PATCH: OS X remove the use of setjmp()/longjmp()

Brian Weaver cmdrclueless at gmail.com
Sat Dec 26 16:52:18 CET 2009


It should if it did before; from a logical perspective it works the
same as before. Previously the code was using setjmp()/longjmp() to
return control back to the caller of NSApp run(). By invoking the
'stop' selector instead of 'quit' the Cocoa framework will return
control after processing the stop event. It accomplishes the same end
result, but avoid any potential side effects from using jump routines
in a managed run time environment.

I'm mainly concerned with Objective-C 2.0 which allows for automatic
garbage collection. Also, I believe the use of 'stop' is easier to
understand than the use of the setjmp() / longjmp().

On Sat, Dec 26, 2009 at 10:28 AM, Pierre d'Herbemont
<pdherbemont at free.fr> wrote:
> On Sat, Dec 26, 2009 at 3:41 PM, Dilaroga Dev <dilaroga at gmail.com> wrote:
>> For me, it works fine i've encountered any problem when quitting from the Dock.
>
> Does this properly exits libvlc, that is the question :-) (ie, writing
> the media library and such)
>
> Pierre.
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>



-- 

/* insert witty comment here */



More information about the vlc-devel mailing list