join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
sharedmutex_test.cpp File Reference
#include <join/thread.hpp>
#include <join/mutex.hpp>
#include <gtest/gtest.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
Include dependency graph for sharedmutex_test.cpp:

Functions

 TEST (SharedMutex, lock)
 test lock.
 
 TEST (SharedMutex, tryLock)
 test tryLock.
 
 TEST (SharedMutex, scopedLock)
 test scoped lock.
 
int main (int argc, char **argv)
 main function.
 

Variables

const std::string _name = "/test_mutex"
 

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

main function.

◆ TEST() [1/3]

TEST ( SharedMutex ,
lock  )

test lock.

◆ TEST() [2/3]

TEST ( SharedMutex ,
scopedLock  )

test scoped lock.

◆ TEST() [3/3]

TEST ( SharedMutex ,
tryLock  )

test tryLock.

Variable Documentation

◆ _name

const std::string _name = "/test_mutex"