15#include "../utils/thread_utils.hpp"
28 std::array<int, 8> prios {0, 1, 2, 1, 3, 2, 2, 0};
29 std::array<int, 8> preCT {20, 15, 20, 30, 10, 5, 5, 20};
31 std::array<int, 8> postCT {50, 30, 20, 25, 10, 15, 15, 45};
33 for (
auto _ : state) {
39 std::array<int, 8> prios {0, 1, 2, 1, 3, 2, 2, 0};
40 std::array<int, 8> preCT {2000, 1500, 2000, 3000, 1000, 500, 500, 2000};
42 std::array<int, 8> postCT {5000, 3000, 2000, 2500, 1000, 1500, 1500, 4500};
44 for (
auto _ : state) {
50 std::array<int, 8> prios {0, 1, 2, 1, 3, 2, 2, 0};
51 std::array<int, 8> preCT {200, 150, 200, 300, 100, 50, 50, 200};
53 std::array<int, 8> postCT {500, 300, 200, 250, 100, 150, 150, 450};
55 for (
auto _ : state) {
61 std::array<int, 8> prios {0, 1, 2, 1, 3, 2, 2, 0};
62 std::array<int, 8> preCT {2000, 1500, 2000, 3000, 1000, 500, 500, 2000};
64 std::array<int, 8> postCT {5000, 3000, 2000, 2500, 1000, 1500, 1500, 4500};
66 for (
auto _ : state) {
The recursive_priority_mutex is an advanced synchronization mechanism that enhances the traditional m...
Definition recursive_priority_mutex.hpp:50
void lock(Priority_t const priority=0)
Acquire the recursive_priority_mutex with a designated priority. If another thread has already obtain...
Definition recursive_priority_mutex.hpp:115
This file contains the all the includes required by the library.
Definition recursive_priority_mutex_benchmark.hpp:17
void pipeline_benchmark_gaming(benchmark::State &state)
Definition recursive_priority_mutex_benchmark.hpp:38
boost::fairness::recursive_priority_mutex< 4 > m
Definition recursive_priority_mutex_benchmark.hpp:18
void lock_unlock_benchmark(benchmark::State &state)
Definition recursive_priority_mutex_benchmark.hpp:20
void pipeline_benchmark_long(benchmark::State &state)
Definition recursive_priority_mutex_benchmark.hpp:27
void pipeline_benchmark_fast(benchmark::State &state)
Definition recursive_priority_mutex_benchmark.hpp:60
void pipeline_benchmark_audio(benchmark::State &state)
Definition recursive_priority_mutex_benchmark.hpp:49
void thread_function(Lockable &lockable, int preCriticalTime, int criticalTime, int postCriticalTime, int p=0)
Definition thread_utils.hpp:26