Dynalib Utils
Classes | Macros | Functions | Variables
TestSynch.cpp File Reference
#include "catch.hpp"
#include "../Utilities/Synchronize.h"
#include "../Utilities/Exception.h"
#include <type_traits>
#include <iostream>
#include <thread>
Include dependency graph for TestSynch.cpp:

Classes

class  Test
 

Macros

#define end_finally   );
 

Functions

void t1 (Test &test, int &counter)
 
void t2 (Test &test, int &counter)
 
void t3 (Test &test, int &counter)
 
void testFinally ()
 
 SCENARIO ("Synchronization behaviour is correct")
 
 SCENARIO ("Finally block behaviour is correct")
 

Variables

bool executedFinally = false
 

Macro Definition Documentation

◆ end_finally

#define end_finally   );

Function Documentation

◆ SCENARIO() [1/2]

SCENARIO ( "Synchronization behaviour is correct"  )

◆ SCENARIO() [2/2]

SCENARIO ( "Finally block behaviour is correct"  )

◆ t1()

void t1 ( Test test,
int &  counter 
)

◆ t2()

void t2 ( Test test,
int &  counter 
)

◆ t3()

void t3 ( Test test,
int &  counter 
)

◆ testFinally()

void testFinally ( )

Variable Documentation

◆ executedFinally

bool executedFinally = false