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

Functions

 TEST (SharedMutex, inheritConstruct)
 test inherit construct.
 
 TEST (SharedMutex, lock)
 test lock.
 
 TEST (SharedMutex, lockOwnerDead)
 test lock with owner dead.
 
 TEST (SharedMutex, tryLock)
 test tryLock.
 
 TEST (SharedMutex, tryLockOwnerDead)
 test tryLock with owner dead.
 
 TEST (SharedMutex, scopedLock)
 test scoped lock.
 
 TEST (SharedMutex, handle)
 test handle.
 
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/7]

TEST ( SharedMutex ,
handle  )

test handle.

◆ TEST() [2/7]

TEST ( SharedMutex ,
inheritConstruct  )

test inherit construct.

◆ TEST() [3/7]

TEST ( SharedMutex ,
lock  )

test lock.

◆ TEST() [4/7]

TEST ( SharedMutex ,
lockOwnerDead  )

test lock with owner dead.

◆ TEST() [5/7]

TEST ( SharedMutex ,
scopedLock  )

test scoped lock.

◆ TEST() [6/7]

TEST ( SharedMutex ,
tryLock  )

test tryLock.

◆ TEST() [7/7]

TEST ( SharedMutex ,
tryLockOwnerDead  )

test tryLock with owner dead.

Variable Documentation

◆ _name

const std::string _name = "/test_mutex"