class documentation

class ThumbnailQueue(object): (source)

View In Hierarchy

Wrapper for ThumbnailManager that does that actual thumbnailing in a separate thread and manages the requests and the results with queues.
Method __init__ Undocumented
Method clear_queue Undocumented
Method get_ready_thumbnail Check output queue for a thumbnail that is ready @returns: a 5-tuple (file, size, thumbfile, pixbuf, mtime) or 5 times None when nothing is ready and block is False.
Method queue_empty Returns True when both input and output queue are empty
Method queue_thumbnail_request No summary
Method start Undocumented
Method _thread_main Undocumented
Instance Variable _count Undocumented
Instance Variable _count_lock Undocumented
Instance Variable _in_queue Undocumented
Instance Variable _out_queue Undocumented
Instance Variable _running Undocumented
Instance Variable _thread Undocumented
Instance Variable _thumbmanager Undocumented
def __init__(self, thumbnailcreator=pixbufThumbnailCreator): (source)

Undocumented

def clear_queue(self): (source)

Undocumented

def get_ready_thumbnail(self, block=False): (source)
Check output queue for a thumbnail that is ready
Returns
a 5-tuple (file, size, thumbfile, pixbuf, mtime) or 5 times None when nothing is ready and block is False.
def queue_empty(self): (source)
Returns True when both input and output queue are empty
def queue_thumbnail_request(self, file, size, mtime=None): (source)
Add a new request to the queue
Parameters
filea File object
sizethe size of the thumbnail in pixels
mtimethe mtime of a previous loaded thumbnail, if this matches the current file, the request will be dropped
def start(self): (source)

Undocumented

def _thread_main(self): (source)

Undocumented

_count: int = (source)

Undocumented

_count_lock = (source)

Undocumented

_in_queue = (source)

Undocumented

_out_queue = (source)

Undocumented

_running = (source)

Undocumented

_thread = (source)

Undocumented

_thumbmanager = (source)

Undocumented