so when tracker->file_process_queue is not empty, and pending table is
not empty,
track daemon is busy, right?


> On Fri, 2007-06-29 at 10:56 +0800, Jerry Tan wrote:
>   
>> This patch add one API to tracker client,
>> so it is easy to query tracker daemon's busy/idle status by call it.
>>
>> for example, a desktop applet can show different icons when tracker 
>> daemon is busy or idle.
>>
>>
>>     
>
> its not quite right
>
> the queue length can be zero and tracker can still be indexing. Also we
> overflow large queues into a temp table to preserve RAM (you will see it
> called as pending files in the code) so it can be zero but still have a
> large number of pending files
>
> you really need to check for the file process thread to be sleeping
> instead and set a suitable variable. There is a tracker->status variable
> already in the code in trackerd.c to track the various states but its
> not used anywhere so I dont know if its up to date
>
> everything else looks ok so feel free to send an update
>
> thanks
>
> jamie
>
>
>
>   

_______________________________________________
tracker-list mailing list
tracker-list@gnome.org
http://mail.gnome.org/mailman/listinfo/tracker-list

Reply via email to