join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
threadpool_test.cpp File Reference
#include <join/threadpool.hpp>
#include <join/utils.hpp>
#include <gtest/gtest.h>
#include <unistd.h>
Include dependency graph for threadpool_test.cpp:

Functions

 TEST (ThreadPool, size)
 test size.
 
 TEST (ThreadPool, push)
 test push.
 
 TEST (ThreadPool, parallelForEach)
 test parallelForEach.
 
int main (int argc, char **argv)
 main function.
 

Variables

size_t nthread = std::thread::hardware_concurrency () + 1
 

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

main function.

◆ TEST() [1/3]

TEST ( ThreadPool ,
parallelForEach  )

test parallelForEach.

◆ TEST() [2/3]

TEST ( ThreadPool ,
push  )

test push.

◆ TEST() [3/3]

TEST ( ThreadPool ,
size  )

test size.

Variable Documentation

◆ nthread

size_t nthread = std::thread::hardware_concurrency () + 1