The ROme OpTimistic Simulator  3.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
sync_test.c File Reference

Test: synchronization primitives test. More...

#include <test.h>
#include <core/core.h>
#include <core/sync.h>
#include <stdatomic.h>
+ Include dependency graph for sync_test.c:

Go to the source code of this file.

Macros

#define THREAD_CNT   2
 

Functions

static int sync_test (void)
 

Variables

static atomic_uint counter
 
const struct test_config test_config
 The test configuration object, must be defined by the test sources. More...
 

Detailed Description

Test: synchronization primitives test.

Definition in file sync_test.c.

Variable Documentation

◆ test_config

const struct test_config test_config
Initial value:
= {
.threads_count = 2 ,
.test_fnc = sync_test,
}

The test configuration object, must be defined by the test sources.

Definition at line 35 of file sync_test.c.