rofi  1.7.0
ViewThreadPool
Collaboration diagram for ViewThreadPool:

Functions

void rofi_view_workers_initialize (void)
 
void rofi_view_workers_finalize (void)
 
void rofi_view_get_current_monitor (int *width, int *height)
 
void rofi_capture_screenshot (void)
 
void rofi_view_set_window_title (const char *title)
 
void rofi_view_ellipsize_start (RofiViewState *state)
 

Detailed Description

The view can (optionally) keep a set of worker threads around to parallize work. This includes filtering and sorting.

Function Documentation

◆ rofi_capture_screenshot()

void rofi_capture_screenshot ( void  )

Takes a screenshot.

Stores a screenshot of Rofi at that point in time.

Definition at line 174 of file view.c.

References CacheState, color_green, and color_reset.

Referenced by record(), and rofi_view_trigger_global_action().

Here is the caller graph for this function:

◆ rofi_view_ellipsize_start()

void rofi_view_ellipsize_start ( RofiViewState state)

set ellipsize mode to start.

Definition at line 2169 of file view.c.

References RofiViewState::list_view, and listview_set_ellipsize_start().

Referenced by dmenu_switcher_dialog().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rofi_view_get_current_monitor()

void rofi_view_get_current_monitor ( int *  width,
int *  height 
)
Parameters
widththe width of the monitor.
heightthe height of the monitor.

Return the current monitor workarea.

Definition at line 139 of file view.c.

References CacheState.

Referenced by get_pixels().

Here is the caller graph for this function:

◆ rofi_view_set_window_title()

void rofi_view_set_window_title ( const char *  title)

Set the window title.

Definition at line 2202 of file view.c.

References CacheState, _xcb_stuff::connection, _xcb_stuff::ewmh, and xcb.

Referenced by __create_window(), rofi_view_create(), and rofi_view_switch_mode().

Here is the caller graph for this function:

◆ rofi_view_workers_finalize()

void rofi_view_workers_finalize ( void  )

Stop all threads and free the resources used by the threadpool

Definition at line 2140 of file view.c.

References tpool.

Referenced by cleanup().

Here is the caller graph for this function:

◆ rofi_view_workers_initialize()

void rofi_view_workers_initialize ( void  )

Initialize the threadpool

Definition at line 2113 of file view.c.

References config, rofi_view_call_thread(), Settings::threads, TICK_N, and tpool.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function: