[Adium-devl] Importer API

Colin Barrett timber at lava.net
Mon Apr 16 13:06:48 UTC 2007


On Apr 12, 2007, at 10:10 AM, Ofri Wolfus wrote:

> Apparently I'm the only one in that opinion, but I still think  
> threading should be avoided whenever possible, especially when you  
> don't *need* another thread and its purpose just to keep the UI  
> responsive. In my previous suggestion, importLogWithError: is  
> invoked periodically by a runloop source, but it doesn't really have  
> to import one log at a time. Large logs can be imported in parts and  
> spread on multiple invocations of that method.
>
> I truly believe a bit of extra effort for these special log cases is  
> worth it if eliminates multi-threading headaches.

AIUI, there's no headache here. We're not sharing mutable data between  
the threads. As long as separate your mutable unshared data and your  
immutable shared data, you shouldn't have too many problems.

Importer API looks good, although to really test an API you should use  
it.

-Colin




More information about the devel mailing list