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

Functions

 TEST (SharedSemaphore, create)
 test create.
 
 TEST (SharedSemaphore, wait)
 test wait.
 
 TEST (SharedSemaphore, tryWait)
 test tryWait.
 
 TEST (SharedSemaphore, timedWait)
 test timedWait.
 
 TEST (SharedSemaphore, value)
 test value.
 
int main (int argc, char **argv)
 main function.
 

Variables

const std::string _name = "/test_semaphore"
 

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

main function.

◆ TEST() [1/5]

TEST ( SharedSemaphore ,
create  )

test create.

◆ TEST() [2/5]

TEST ( SharedSemaphore ,
timedWait  )

test timedWait.

◆ TEST() [3/5]

TEST ( SharedSemaphore ,
tryWait  )

test tryWait.

◆ TEST() [4/5]

TEST ( SharedSemaphore ,
value  )

test value.

◆ TEST() [5/5]

TEST ( SharedSemaphore ,
wait  )

test wait.

Variable Documentation

◆ _name

const std::string _name = "/test_semaphore"