join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
thread_test.cpp File Reference
#include <join/thread.hpp>
#include <join/error.hpp>
#include <gtest/gtest.h>
#include <cstring>
#include <thread>
#include <vector>
#include <sys/mman.h>
#include <sys/wait.h>
Include dependency graph for thread_test.cpp:

Functions

 TEST (Thread, defaultConstruct)
 test default construction.
 
 TEST (Thread, moveConstruct)
 test move construction.
 
 TEST (Thread, moveAssign)
 test move assignment.
 
 TEST (Thread, prefaultConstruct)
 test prefault construction.
 
 TEST (Thread, stackSizeConstruct)
 test stack size construction.
 
 TEST (Thread, affinity)
 test affinity.
 
 TEST (Thread, priority)
 test priority.
 
 TEST (Thread, joinable)
 test joinable.
 
 TEST (Thread, running)
 test running.
 
 TEST (Thread, tryJoin)
 test tryJoin.
 
 TEST (Thread, cancel)
 test cancel.
 
 TEST (Thread, swap)
 test swap.
 
 TEST (Thread, currentId)
 test currentId.
 
 TEST (Thread, id)
 test id.
 
 TEST (Thread, handle)
 test handle.
 
int main (int argc, char **argv)
 main function.
 

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

main function.

◆ TEST() [1/15]

TEST ( Thread ,
affinity  )

test affinity.

◆ TEST() [2/15]

TEST ( Thread ,
cancel  )

test cancel.

◆ TEST() [3/15]

TEST ( Thread ,
currentId  )

test currentId.

◆ TEST() [4/15]

TEST ( Thread ,
defaultConstruct  )

test default construction.

◆ TEST() [5/15]

TEST ( Thread ,
handle  )

test handle.

◆ TEST() [6/15]

TEST ( Thread ,
id  )

test id.

◆ TEST() [7/15]

TEST ( Thread ,
joinable  )

test joinable.

◆ TEST() [8/15]

TEST ( Thread ,
moveAssign  )

test move assignment.

◆ TEST() [9/15]

TEST ( Thread ,
moveConstruct  )

test move construction.

◆ TEST() [10/15]

TEST ( Thread ,
prefaultConstruct  )

test prefault construction.

◆ TEST() [11/15]

TEST ( Thread ,
priority  )

test priority.

◆ TEST() [12/15]

TEST ( Thread ,
running  )

test running.

◆ TEST() [13/15]

TEST ( Thread ,
stackSizeConstruct  )

test stack size construction.

◆ TEST() [14/15]

TEST ( Thread ,
swap  )

test swap.

◆ TEST() [15/15]

TEST ( Thread ,
tryJoin  )

test tryJoin.