diff options
author | Qball Cow <qball@blame.services> | 2024-02-11 13:59:11 +0100 |
---|---|---|
committer | Qball Cow <qball@blame.services> | 2024-02-11 14:00:03 +0100 |
commit | 13c2a617666d5ee054fee2bba6abc3ce6a557570 (patch) | |
tree | 84ccfd80e96645fa716439a79299fe9e3a0f2df2 /source/rofi-icon-fetcher.c | |
parent | 3dc3e2d6164ab4a8720d044575a09d43f06eab0d (diff) |
[ThreadPool] Sort items in the queue based on priority
Diffstat (limited to 'source/rofi-icon-fetcher.c')
-rw-r--r-- | source/rofi-icon-fetcher.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/rofi-icon-fetcher.c b/source/rofi-icon-fetcher.c index c65463ae..c2bb0f1f 100644 --- a/source/rofi-icon-fetcher.c +++ b/source/rofi-icon-fetcher.c @@ -411,6 +411,7 @@ uint32_t rofi_icon_fetcher_query_advanced(const char *name, const int wsize, // Push into fetching queue. sentry->state.callback = rofi_icon_fetcher_worker; + sentry->state.priority = G_PRIORITY_LOW; g_thread_pool_push(tpool, sentry, NULL); return sentry->uid; @@ -447,6 +448,7 @@ uint32_t rofi_icon_fetcher_query(const char *name, const int size) { // Push into fetching queue. sentry->state.callback = rofi_icon_fetcher_worker; + sentry->state.priority = G_PRIORITY_LOW; g_thread_pool_push(tpool, sentry, NULL); return sentry->uid; |