mainthread module

Class

Description

binaryninja.mainthread.execute_on_main_thread

The execute_on_main_thread function takes a single parameter which is a function that will…

binaryninja.mainthread.execute_on_main_thread_and_wait

The execute_on_main_thread function takes a single parameter which is a function that will…

binaryninja.mainthread.get_worker_thread_count

The get_worker_thread_count function returns the number of worker threads that are currently…

binaryninja.mainthread.is_main_thread

binaryninja.mainthread.set_worker_thread_count

The set_worker_thread_count function sets the number of worker threads that are currently…

binaryninja.mainthread.worker_enqueue

binaryninja.mainthread.worker_interactive_enqueue

binaryninja.mainthread.worker_priority_enqueue

execute_on_main_thread

class execute_on_main_thread[source]

Bases:

The execute_on_main_thread function takes a single parameter which is a function that will be executed on the main Binary Ninja thread.

Warning

May be required for some GUI operations, but should be used sparingly as it can block the UI.

execute_on_main_thread_and_wait

class execute_on_main_thread_and_wait[source]

Bases:

The execute_on_main_thread function takes a single parameter which is a function that will be executed on the main Binary Ninja thread and will block execution of further python until the function returns.

Warning

May be required for some GUI operations, but should be used sparingly as it can block the UI.

get_worker_thread_count

class get_worker_thread_count[source]

Bases:

The get_worker_thread_count function returns the number of worker threads that are currently running. By default, this is the number of cores on the system minus one, however this can be changed with set_worker_thread_count.

is_main_thread

class is_main_thread[source]

Bases:

set_worker_thread_count

class set_worker_thread_count[source]

Bases:

The set_worker_thread_count function sets the number of worker threads that are currently running. By default, this is the number of cores on the system minus one.

worker_enqueue

class worker_enqueue[source]

Bases:

worker_interactive_enqueue

class worker_interactive_enqueue[source]

Bases:

worker_priority_enqueue

class worker_priority_enqueue[source]

Bases: