[vlc-devel] [PATCH] Sqlite Module for VLC, GSoC 09

Srikanth Raju srikiraju at gmail.com
Fri Aug 28 23:12:09 CEST 2009

>> >> The other three are for transactions. We could have a single function
>> >> with a parameter for which transactional procedure to call. But is that really
>> >> easier? It's like having "vlc_mutex_proc(Lock) and vlc_mutex_proc(Unlock)"
>> >  It depends, if the only valid way is:
>> >  begin(); query(); if(commit()) rollback(); end(); then a unique query() doing
>> > all that is to be prefered.
>> >
>> You can also do begin(); query(); query(); query(); if( !commit() ) rollback();
> then at least merging commit+rollback+end into end() would simplify no ?
> (or whatever name you prefer to keep).

There is no end(). And there may be places where one may want to
rollback without
So, begin(); query(); rollback(); is valid.
So is begin(); query(); <try commit() upto 3 times if it doesn't
succeed else rollback>
Sorry I wasn't clearer.

> --
> fenrir
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel

Srikanth Raju

More information about the vlc-devel mailing list