Re: Status report 'Refactoring Deskbar-Applet' 02.07.2007



Nickolay V. Shmyrev schrieb:
> В Птн, 06/07/2007 в 21:00 +0200, Sebastian Pölsterl пишет:
>>>>>> Hi!
>>>>>>
>> Now I don't know where to search for the cause of this problem :( Please
>> help me !!!
>>
>> Some more details on how it should work:
>> If the user types in something and the text didn't change for 250 ms
>> each module is queried. Querying the modules works asynchronously (for
>> each module the query method is called in a thread) and each module
>> emits a signal if it collected the results. A callback function connects
>> to those signals and adds the results to the TreeView/TreeStore. If the
>> entry changed, the TreeView/TreeStore is cleared.
>>
>
> Hm, it seems that with the patch you sent me (in attachment for others)
> ThreadPool doesn't work correctly. It's just blocking - threads are
> created but don't start. I'm not sure what is the reason of this bug
> yet.
>
Thanks for the help. I investigated the problem.

It seems that some query threads don't seem to terminate. This behavior
occures with modules that use to connect to the internet (yahoo) and the
programs module causes this, too.
Because the worker thread is still working on executing a previous query
it's busy. If I type in a new query, another working thread will be
blocked with this task. Eventually, all worker threads are blocked and
new queries are queued and no new results will be displayed.

Now I try to find out whether the ThreadPool or the module itsself is
responsible for this.

-- 
Greetings,
Sebastian Pölsterl



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]