[mb-devel] libmusicbrainz3 testing

Tobias Rundström tru at xmms.org
Sat Jul 22 23:20:02 UTC 2006


On 22 jul 2006, at 19.12, Michael Davidson wrote:

> Personally I think it's a bad idea. In my opinion libmusicbrainz  
> should be a low level library that gets the data and gives it to  
> the developer. In it's current form it is extremely portable.  
> Thread creation, on the other hand, is rather OS specific (pthreads  
> aren't available on all platforms). If an asynchronous mode is  
> really required put it in libtunepimp which is far less portable  
> and isn't necessary for MB integration.

You don't need to create threads for doing something Asynchronous.  
What I am suggesting is to keep threads OUT OF UI PROGRAMS, because  
they have very bad problems with many toolkits.

Instead you have a function that reads data from the server in a  
nonblocking way. Much much better. This way we can also process  
multiple requests from one client.

-- Tobias



More information about the MusicBrainz-devel mailing list