|
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 131 of file mutex_tests.h.
| #define MTX_MT_ITERS 100 |
Definition at line 191 of file mutex_tests.h.
| #define MTX_MT_N 64 |
Definition at line 190 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 144 of file mutex_tests.h.
|
static |
Definition at line 135 of file mutex_tests.h.
|
static |
Definition at line 90 of file mutex_tests.h.
|
static |
Definition at line 194 of file mutex_tests.h.
|
inlinestatic |
|
static |
Definition at line 48 of file mutex_tests.h.
|
static |
Definition at line 155 of file mutex_tests.h.
|
static |
|
static |
Definition at line 206 of file mutex_tests.h.
|
static |
Definition at line 105 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 133 of file mutex_tests.h.
|
static |
Definition at line 132 of file mutex_tests.h.
|
static |
Definition at line 88 of file mutex_tests.h.
|
static |
Definition at line 192 of file mutex_tests.h.
|
static |
Definition at line 35 of file mutex_tests.h.