|
Serene Runtime 1.0.0-dev
C runtime for the Serene programming language
|
#include <stdatomic.h>#include <stdint.h>#include "base.h"#include "serene/rt/fiber.h"#include "serene/rt/fiber/mutex.h"Go to the source code of this file.
Macros | |
| #define | MUTEX_TESTS(X) |
| #define | MTX_MUTEX_N 8 |
| #define | MTX_FIFO_N 3 |
| #define | MTX_MT_N 64 |
| #define | MTX_MT_ITERS 100 |
Functions | |
| static srn_fiber_t * | test_mtx_state (void) |
| static void | test_mutex_init () |
| static srn_fiber_result_t | test_mtx_uncontended_entry (srn_context_t *ctx, void *arg) |
| static void | test_mutex_uncontended () |
| static srn_fiber_result_t | test_mtx_me_entry (srn_context_t *ctx, void *arg) |
| static void | test_mutex_mutual_exclusion () |
| static srn_fiber_result_t | test_mtx_fifo_waiter_entry (srn_context_t *ctx, void *arg) |
| static srn_fiber_result_t | test_mtx_fifo_holder_entry (srn_context_t *ctx, void *arg) |
| static void | test_mutex_fifo_order () |
| static srn_fiber_result_t | test_mtx_mt_entry (srn_context_t *ctx, void *arg) |
| static void | test_mutex_mt_contention () |
Variables | |
| static srn_fiber_mutex_t | test_mtx |
| static bool | test_mtx_uncontended_ran |
| static int | test_mtx_me_counter |
| static int | test_mtx_fifo_order [MTX_FIFO_N] |
| static int | test_mtx_fifo_n |
| static long | test_mtx_mt_counter |
| #define MTX_FIFO_N 3 |
Definition at line 128 of file mutex_tests.h.
| #define MTX_MT_ITERS 100 |
Definition at line 188 of file mutex_tests.h.
| #define MTX_MT_N 64 |
Definition at line 187 of file mutex_tests.h.
| #define MTX_MUTEX_N 8 |
Definition at line 87 of file mutex_tests.h.
| #define MUTEX_TESTS | ( | X | ) |
Definition at line 28 of file mutex_tests.h.
|
static |
Definition at line 141 of file mutex_tests.h.
|
static |
Definition at line 132 of file mutex_tests.h.
|
static |
Definition at line 90 of file mutex_tests.h.
|
static |
Definition at line 191 of file mutex_tests.h.
|
inlinestatic |
|
static |
Definition at line 48 of file mutex_tests.h.
|
static |
Definition at line 152 of file mutex_tests.h.
|
static |
|
static |
Definition at line 203 of file mutex_tests.h.
|
static |
Definition at line 102 of file mutex_tests.h.
|
static |
Definition at line 62 of file mutex_tests.h.
|
static |
Definition at line 34 of file mutex_tests.h.
|
static |
Definition at line 130 of file mutex_tests.h.
|
static |
Definition at line 129 of file mutex_tests.h.
|
static |
Definition at line 88 of file mutex_tests.h.
|
static |
Definition at line 189 of file mutex_tests.h.
|
static |
Definition at line 35 of file mutex_tests.h.