Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bshoshany/thread-pool
/ functions
Functions
226 in github.com/bshoshany/thread-pool
⨍
Functions
226
◇
Types & classes
40
↓ 1 callers
Function
check_sequence_return
* @brief Check that submit_sequence() works for a specific range of indices, with a return value. * * @param pool The thread pool to check. * @para
tests/BS_thread_pool_test.cpp:1948
↓ 1 callers
Function
check_shared_ptr_all
* @brief Check, for all member functions which parallelize loops or sequences of tasks, that if a task that captures a shared pointer is submitted, th
tests/BS_thread_pool_test.cpp:2687
↓ 1 callers
Function
check_task_destruct
* @brief Check that a task is destructed immediately after it executes, and therefore does not artificially extend the lifetime of any captured object
tests/BS_thread_pool_test.cpp:2700
↓ 1 callers
Function
check_task_monitoring
* @brief Check that task monitoring works. */
tests/BS_thread_pool_test.cpp:2049
↓ 1 callers
Function
check_vector_of_size
* @brief Check that parallelized vector operations work as expected by calculating the sum of two randomized vectors of a specific size in two ways, s
tests/BS_thread_pool_test.cpp:2227
↓ 1 callers
Function
check_vectors
* @brief Check that parallelized vector operations work as expected. */
tests/BS_thread_pool_test.cpp:2262
↓ 1 callers
Function
check_wait
* @brief Check that wait() works. */
tests/BS_thread_pool_test.cpp:1427
↓ 1 callers
Function
check_wait_blocks
* @brief Check that wait() correctly blocks all external threads that call it. */
tests/BS_thread_pool_test.cpp:1450
↓ 1 callers
Function
check_wait_for
* @brief Check that wait_for() works. */
tests/BS_thread_pool_test.cpp:1491
↓ 1 callers
Function
check_wait_multiple_deadlock
* @brief Check that calling wait() more than once doesn't create a deadlock. */
tests/BS_thread_pool_test.cpp:1543
↓ 1 callers
Function
check_wait_self_deadlock
* @brief Check that calling wait() from within a thread of the same pool throws an exception instead of creating a deadlock. */
tests/BS_thread_pool_test.cpp:1593
↓ 1 callers
Function
check_wait_until
* @brief Check that wait_until() works. */
tests/BS_thread_pool_test.cpp:1515
↓ 1 callers
Method
detach_test_flag_no_args
tests/BS_thread_pool_test.cpp:1148
↓ 1 callers
Method
detach_test_flag_one_arg
tests/BS_thread_pool_test.cpp:1159
↓ 1 callers
Function
detect_compiler
* @brief Detect the compiler used to compile this program. * * @return A string describing the compiler. */
tests/BS_thread_pool_test.cpp:611
↓ 1 callers
Function
detect_cpp_standard
* @brief Detect the C++ standard used to compile this program. * * @return A string describing the C++ standard. */
tests/BS_thread_pool_test.cpp:632
↓ 1 callers
Function
detect_lib
* @brief Detect the C++ standard library used to compile this program. * * @return A string describing the C++ standard library. */
tests/BS_thread_pool_test.cpp:650
↓ 1 callers
Function
detect_os
* @brief Detect the operating system used to compile this program. * * @return A string describing the operating system. */
tests/BS_thread_pool_test.cpp:676
↓ 1 callers
Function
determine_thread_count
* @brief Determine how many threads the pool should have, based on the parameter passed to the constructor or reset(). * * @param num_thread
include/BS_thread_pool.hpp:2125
↓ 1 callers
Method
get_copied
tests/BS_thread_pool_test.cpp:865
↓ 1 callers
Method
get_executable
* @brief Get the name of the executable. * * @return The name of the executable. */
tests/BS_thread_pool_test.cpp:3906
↓ 1 callers
Method
get_moved
tests/BS_thread_pool_test.cpp:870
↓ 1 callers
Function
get_time
* @brief Get a string representing the current time. * * @return The string. */
tests/BS_thread_pool_test.cpp:3832
↓ 1 callers
Function
interpolate_colors
* @brief Interpolate between two colors. * * @param first The first color. * @param second The second color. * @param t The interpolation point, i
tests/BS_thread_pool_test.cpp:3290
↓ 1 callers
Function
iter_to_color
* @brief Convert the escape time of a point into a color. * * @param iterations The fractional number of iterations before the point escapes the Man
tests/BS_thread_pool_test.cpp:3301
↓ 1 callers
Function
mandelbrot_escape
* @brief Find the escape time of a point. * * @param c The point. * @return The escape time, that is, the number of iterations before the point esc
tests/BS_thread_pool_test.cpp:3247
↓ 1 callers
Function
min_element_index
tests/BS_thread_pool_test.cpp:3150
↓ 1 callers
Function
parse_llvm_version
Extract the LLVM version from a path and returns it as a tuple of integers.
scripts/compile_cpp.py:183
↓ 1 callers
Function
pop_task
* @brief Pop a task from the queue. * * @return The task. */
include/BS_thread_pool.hpp:2251
↓ 1 callers
Function
print_speedup
* @brief Calculate and print the speedup obtained by multithreading. * * @param timings A vector of the timings corresponding to different numbers o
tests/BS_thread_pool_test.cpp:3161
↓ 1 callers
Function
print_timing
* @brief Print the timing of a specific test. * * @param stats A struct containing the mean and standard deviation. * @param pixels_per_ms The numb
tests/BS_thread_pool_test.cpp:3134
↓ 1 callers
Method
remove_stream
* @brief Remove a stream from the list of output streams to print to. * * @param stream The stream. */
include/BS_thread_pool.hpp:2483
↓ 1 callers
Function
save_bmp
* @brief Save an image to a BMP file. * * @param image The matrix containing the pixels. * @param filename The output file name. */
tests/BS_thread_pool_test.cpp:3365
↓ 1 callers
Method
set_flag_no_args_return
tests/BS_thread_pool_test.cpp:1133
↓ 1 callers
Method
set_flag_one_arg_return
tests/BS_thread_pool_test.cpp:1138
↓ 1 callers
Method
submit_test_flag_no_args
tests/BS_thread_pool_test.cpp:1170
↓ 1 callers
Method
submit_test_flag_no_args_return
tests/BS_thread_pool_test.cpp:1192
↓ 1 callers
Method
submit_test_flag_one_arg
tests/BS_thread_pool_test.cpp:1181
↓ 1 callers
Method
submit_test_flag_one_arg_return
tests/BS_thread_pool_test.cpp:1202
↓ 1 callers
Method
to_string
include/BS_thread_pool.hpp:182
↓ 1 callers
Function
try_os_thread_priority
* @brief Try to set the OS priority of this thread to the highest possible value. Also set the name of the thread for debugging purposes. */
tests/BS_thread_pool_test.cpp:3100
↓ 1 callers
Method
verify
* @brief Verify that the command line arguments belong to the list of allowed arguments. * * @return `true` if all arguments are allowed, `f
tests/BS_thread_pool_test.cpp:3943
Method
__init__
Store the parsed arguments.
scripts/compile_cpp.py:34
Method
arg_parser
* @brief Convert the command line arguments passed to the `main()` function into an `std::vector`. * * @param argc The number of arguments.
tests/BS_thread_pool_test.cpp:3874
Method
blocks
* @brief Construct a `blocks` object with the given specifications. * * @param first_index_ The first index in the range. * @param inde
include/BS_thread_pool.hpp:584
Method
color
tests/BS_thread_pool_test.cpp:3270
Method
count_copy_move
tests/BS_thread_pool_test.cpp:2549
Method
counting_semaphore
* @brief Construct a new counting semaphore with the given initial counter value. * * @param desired The initial counter value. */
tests/BS_thread_pool_test.cpp:132
Method
current_ms
* @brief Get the number of milliseconds that have elapsed since the object was constructed or since `start()` was last called, but keep the timer tick
tests/BS_thread_pool_test.cpp:3436
Function
detach_blocks
include/BS_thread_pool.hpp:1531
Function
detach_loop
include/BS_thread_pool.hpp:1596
Function
detach_sequence
include/BS_thread_pool.hpp:1614
Method
detect_copy_move
tests/BS_thread_pool_test.cpp:855
Method
detect_destruct
tests/BS_thread_pool_test.cpp:2619
Function
enqueue_blocks
include/BS_thread_pool.hpp:2158
Function
enqueue_loop
include/BS_thread_pool.hpp:2193
Function
enqueue_sequence
include/BS_thread_pool.hpp:2228
Method
flag_class
tests/BS_thread_pool_test.cpp:1121
Method
func_model
include/BS_thread_pool.hpp:341
Method
get_index
* @brief Get the index of the current thread. If this thread belongs to a `BS::thread_pool` object, the return value will be an index in the range `[0
include/BS_thread_pool.hpp:977
Function
get_native_handles
* @brief Get a vector containing the underlying implementation-defined thread handles for each of the pool's threads, as obtained by `std::thread::nat
include/BS_thread_pool.hpp:1645
Method
get_os_thread_affinity
* @brief Get the processor affinity of the current thread using the current platform's native API. This should work on Windows and Linux, but is not p
include/BS_thread_pool.hpp:998
Method
get_os_thread_name
* @brief Get the name of the current thread using the current platform's native API. This should work on Windows, Linux, and macOS. * * @ret
include/BS_thread_pool.hpp:1074
Method
get_os_thread_priority
* @brief Get the priority of the current thread using the current platform's native API. This should work on Windows, Linux, and macOS. * *
include/BS_thread_pool.hpp:1143
Method
get_pool
* @brief Get a pointer to the thread pool that owns the current thread. If this thread belongs to a `BS::thread_pool` object, the return value will be
include/BS_thread_pool.hpp:987
Function
get_tasks_queued
* @brief Get the number of tasks currently waiting in the queue to be executed by the threads. * * @return The number of queued tasks.
include/BS_thread_pool.hpp:1659
Function
get_tasks_running
* @brief Get the number of tasks currently being executed by the threads. * * @return The number of running tasks. */
include/BS_thread_pool.hpp:1670
Function
get_tasks_total
* @brief Get the total number of unfinished tasks: either still waiting in the queue, or running in a thread. Note that `get_tasks_total() == get_task
include/BS_thread_pool.hpp:1681
Function
get_thread_ids
* @brief Get a vector containing the unique identifiers for each of the pool's threads, as obtained by `std::thread::get_id()` (or `std::jthread::get_
include/BS_thread_pool.hpp:1702
Method
image_matrix
tests/BS_thread_pool_test.cpp:3198
Function
is_paused
* @brief Check whether the pool is currently paused. Only enabled if the flag `BS::tp::pause` is enabled in the template parameter. * * @ret
include/BS_thread_pool.hpp:1715
Function
main
tests/BS_thread_pool_test.cpp:3976
Method
max
* @brief Returns the internal counter's maximum possible value, which in this implementation is equal to `LeastMaxValue`. * * @return The in
tests/BS_thread_pool_test.cpp:146
Method
mean_sd
tests/BS_thread_pool_test.cpp:3122
Method
member_function
tests/BS_thread_pool_test.cpp:1344
Function
normal_func
tests/BS_thread_pool_test.cpp:1329
Method
operator!=
include/BS_thread_pool.hpp:156
Function
operator()
include/BS_thread_pool.hpp:325
Method
operator()
tests/BS_thread_pool_test.cpp:1336
Method
operator()
tests/BS_thread_pool_test.cpp:3207
Method
operator()
include/BS_thread_pool.hpp:673
Method
operator()
include/BS_thread_pool.hpp:692
Method
operator()
include/BS_thread_pool.hpp:713
Method
operator<
include/BS_thread_pool.hpp:161
Method
operator<
* @brief Compare the priority of two tasks. * * @param lhs The first task. * @param rhs The second task. * @return `true` if the f
include/BS_thread_pool.hpp:426
Method
operator<=
include/BS_thread_pool.hpp:176
Method
operator<=>
include/BS_thread_pool.hpp:149
Method
operator==
include/BS_thread_pool.hpp:151
Method
operator>
include/BS_thread_pool.hpp:171
Method
operator>=
include/BS_thread_pool.hpp:166
Method
operator[]
tests/BS_thread_pool_test.cpp:3217
Method
operator[]
* @brief Check if a specific command line argument has been passed to the program. If no arguments were passed, use the default value instead. *
tests/BS_thread_pool_test.cpp:3882
Function
pause
* @brief Pause the pool. The workers will temporarily stop retrieving new tasks out of the queue, although any tasks already executing will keep runni
include/BS_thread_pool.hpp:1725
Method
pr_task
* @brief Construct a new task with an assigned priority. * * @param task_ The task. * @param priority_ The desired priority. */
include/BS_thread_pool.hpp:417
Method
println
include/BS_thread_pool.hpp:2473
Function
purge
* @brief Purge all the tasks waiting in the queue. Tasks that are currently running will not be affected, but any tasks still waiting in the queue wil
include/BS_thread_pool.hpp:1735
Method
ready_count
* @brief Check how many of the futures stored in this `BS::multi_future` are ready. * * @return The number of ready futures. */
include/BS_thread_pool.hpp:493
Function
reset
* @brief Reset the pool with the default number of threads (as if constructed with the default constructor). Waits for all tasks to be completed, both
include/BS_thread_pool.hpp:1744
Function
set_cleanup_func
include/BS_thread_pool.hpp:1804
Method
set_os_thread_affinity
* @brief Set the processor affinity of the current thread using the current platform's native API. This should work on Windows and Linux, but is not p
include/BS_thread_pool.hpp:1048
← previous
next →
101–200 of 226, ranked by callers