Main MRPT website > C++ reference for MRPT 1.5.6
Functions
CSemaphore_unittest.cpp File Reference
#include <mrpt/synch/CSemaphore.h>
#include <mrpt/random.h>
#include <mrpt/system/threads.h>
#include <gtest/gtest.h>
Include dependency graph for CSemaphore_unittest.cpp:

Go to the source code of this file.

Functions

void launchTestWithTimeout (void(*func)(void), double timeout_secs, const std::string &fail_msg)
 
void sem_thread_example (int id)
 
template<int num_threads, int initial_sem_count>
void my_CSemaphore ()
 
 TEST (Synch, CSemaphore)
 

Function Documentation

◆ launchTestWithTimeout()

void launchTestWithTimeout ( void(*)(void func,
double  timeout_secs,
const std::string fail_msg 
)

Definition at line 39 of file CCriticalSection_unittest.cpp.

References TAux::run(), mrpt::system::sleep(), and mrpt::utils::CTicTac::Tic().

Referenced by TEST().

◆ my_CSemaphore()

template<int num_threads, int initial_sem_count>
void my_CSemaphore ( )

◆ sem_thread_example()

void sem_thread_example ( int  id)

◆ TEST()

TEST ( Synch  ,
CSemaphore   
)

Definition at line 85 of file CSemaphore_unittest.cpp.

References launchTestWithTimeout().




Page generated by Doxygen 1.8.14 for MRPT 1.5.6 Git: 4c65e8431 Tue Apr 24 08:18:17 2018 +0200 at lun oct 28 01:35:26 CET 2019