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

Functions

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

Variables

const std::string _name = "/test_futex"
 

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

main function.

◆ TEST() [1/4]

TEST ( SharedFutex ,
handle  )

test handle.

◆ TEST() [2/4]

TEST ( SharedFutex ,
lock  )

test lock.

◆ TEST() [3/4]

TEST ( SharedFutex ,
scopedLock  )

test scoped lock.

◆ TEST() [4/4]

TEST ( SharedFutex ,
tryLock  )

test tryLock.

Variable Documentation

◆ _name

const std::string _name = "/test_futex"