Gromacs  2021.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
gmx::test::anonymous_namespace{mutex.cpp}::DifferentTasksTest Class Reference

Inherits TestWithParam< TaskType >.


Parameterized test fixture.

Checks that different launch policies work. In further tests of mutual exclusion, we need to specify std::thread::async, to require that a thread actually launched. The default policy permits the std:: implementation to avoid launching a thread, and at least the behaviour of thread-MPI try_lock also varies with the threading implementation underlying it.

Public Member Functions

void checkResults ()
 Check the results.

Public Attributes

std::future< int > futureResult_
 Contains the result the task returns.

The documentation for this class was generated from the following file: