MCPcopy Create free account

hub / github.com/bshoshany/thread-pool / functions

Functions226 in github.com/bshoshany/thread-pool

↓ 1 callersFunctioncheck_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 callersFunctioncheck_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 callersFunctioncheck_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 callersFunctioncheck_task_monitoring
* @brief Check that task monitoring works. */
tests/BS_thread_pool_test.cpp:2049
↓ 1 callersFunctioncheck_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 callersFunctioncheck_vectors
* @brief Check that parallelized vector operations work as expected. */
tests/BS_thread_pool_test.cpp:2262
↓ 1 callersFunctioncheck_wait
* @brief Check that wait() works. */
tests/BS_thread_pool_test.cpp:1427
↓ 1 callersFunctioncheck_wait_blocks
* @brief Check that wait() correctly blocks all external threads that call it. */
tests/BS_thread_pool_test.cpp:1450
↓ 1 callersFunctioncheck_wait_for
* @brief Check that wait_for() works. */
tests/BS_thread_pool_test.cpp:1491
↓ 1 callersFunctioncheck_wait_multiple_deadlock
* @brief Check that calling wait() more than once doesn't create a deadlock. */
tests/BS_thread_pool_test.cpp:1543
↓ 1 callersFunctioncheck_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 callersFunctioncheck_wait_until
* @brief Check that wait_until() works. */
tests/BS_thread_pool_test.cpp:1515
↓ 1 callersMethoddetach_test_flag_no_args
tests/BS_thread_pool_test.cpp:1148
↓ 1 callersMethoddetach_test_flag_one_arg
tests/BS_thread_pool_test.cpp:1159
↓ 1 callersFunctiondetect_compiler
* @brief Detect the compiler used to compile this program. * * @return A string describing the compiler. */
tests/BS_thread_pool_test.cpp:611
↓ 1 callersFunctiondetect_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 callersFunctiondetect_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 callersFunctiondetect_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 callersFunctiondetermine_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 callersMethodget_copied
tests/BS_thread_pool_test.cpp:865
↓ 1 callersMethodget_executable
* @brief Get the name of the executable. * * @return The name of the executable. */
tests/BS_thread_pool_test.cpp:3906
↓ 1 callersMethodget_moved
tests/BS_thread_pool_test.cpp:870
↓ 1 callersFunctionget_time
* @brief Get a string representing the current time. * * @return The string. */
tests/BS_thread_pool_test.cpp:3832
↓ 1 callersFunctioninterpolate_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 callersFunctioniter_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 callersFunctionmandelbrot_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 callersFunctionmin_element_index
tests/BS_thread_pool_test.cpp:3150
↓ 1 callersFunctionparse_llvm_version
Extract the LLVM version from a path and returns it as a tuple of integers.
scripts/compile_cpp.py:183
↓ 1 callersFunctionpop_task
* @brief Pop a task from the queue. * * @return The task. */
include/BS_thread_pool.hpp:2251
↓ 1 callersFunctionprint_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 callersFunctionprint_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 callersMethodremove_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 callersFunctionsave_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 callersMethodset_flag_no_args_return
tests/BS_thread_pool_test.cpp:1133
↓ 1 callersMethodset_flag_one_arg_return
tests/BS_thread_pool_test.cpp:1138
↓ 1 callersMethodsubmit_test_flag_no_args
tests/BS_thread_pool_test.cpp:1170
↓ 1 callersMethodsubmit_test_flag_no_args_return
tests/BS_thread_pool_test.cpp:1192
↓ 1 callersMethodsubmit_test_flag_one_arg
tests/BS_thread_pool_test.cpp:1181
↓ 1 callersMethodsubmit_test_flag_one_arg_return
tests/BS_thread_pool_test.cpp:1202
↓ 1 callersMethodto_string
include/BS_thread_pool.hpp:182
↓ 1 callersFunctiontry_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 callersMethodverify
* @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
Methodarg_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
Methodblocks
* @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
Methodcolor
tests/BS_thread_pool_test.cpp:3270
Methodcount_copy_move
tests/BS_thread_pool_test.cpp:2549
Methodcounting_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
Methodcurrent_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
Functiondetach_blocks
include/BS_thread_pool.hpp:1531
Functiondetach_loop
include/BS_thread_pool.hpp:1596
Functiondetach_sequence
include/BS_thread_pool.hpp:1614
Methoddetect_copy_move
tests/BS_thread_pool_test.cpp:855
Methoddetect_destruct
tests/BS_thread_pool_test.cpp:2619
Functionenqueue_blocks
include/BS_thread_pool.hpp:2158
Functionenqueue_loop
include/BS_thread_pool.hpp:2193
Functionenqueue_sequence
include/BS_thread_pool.hpp:2228
Methodflag_class
tests/BS_thread_pool_test.cpp:1121
Methodfunc_model
include/BS_thread_pool.hpp:341
Methodget_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
Functionget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Functionget_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
Functionget_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
Functionget_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
Functionget_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
Methodimage_matrix
tests/BS_thread_pool_test.cpp:3198
Functionis_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
Functionmain
tests/BS_thread_pool_test.cpp:3976
Methodmax
* @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
Methodmean_sd
tests/BS_thread_pool_test.cpp:3122
Methodmember_function
tests/BS_thread_pool_test.cpp:1344
Functionnormal_func
tests/BS_thread_pool_test.cpp:1329
Methodoperator!=
include/BS_thread_pool.hpp:156
Functionoperator()
include/BS_thread_pool.hpp:325
Methodoperator()
tests/BS_thread_pool_test.cpp:1336
Methodoperator()
tests/BS_thread_pool_test.cpp:3207
Methodoperator()
include/BS_thread_pool.hpp:673
Methodoperator()
include/BS_thread_pool.hpp:692
Methodoperator()
include/BS_thread_pool.hpp:713
Methodoperator<
include/BS_thread_pool.hpp:161
Methodoperator<
* @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
Methodoperator<=
include/BS_thread_pool.hpp:176
Methodoperator<=>
include/BS_thread_pool.hpp:149
Methodoperator==
include/BS_thread_pool.hpp:151
Methodoperator>
include/BS_thread_pool.hpp:171
Methodoperator>=
include/BS_thread_pool.hpp:166
Methodoperator[]
tests/BS_thread_pool_test.cpp:3217
Methodoperator[]
* @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
Functionpause
* @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
Methodpr_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
Methodprintln
include/BS_thread_pool.hpp:2473
Functionpurge
* @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
Methodready_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
Functionreset
* @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
Functionset_cleanup_func
include/BS_thread_pool.hpp:1804
Methodset_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
← previousnext →101–200 of 226, ranked by callers